X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/8e41b68e8f975c02a5d9281be780ba5d1a385107..e73eed8563d21ef9ce83725cb09a3c2e14a40dbe:/authenticate.c diff --git a/authenticate.c b/authenticate.c index 484cebe0..8991ac43 100644 --- a/authenticate.c +++ b/authenticate.c @@ -241,7 +241,7 @@ char *auth_server(int f_in, int f_out, int module, const char *host, io_printf(f_out, "%s%s\n", leader, challenge); - if (!read_line(f_in, line, sizeof line - 1) + if (!read_line_old(f_in, line, sizeof line) || (pass = strchr(line, ' ')) == NULL) { rprintf(FLOG, "auth failed on module %s from %s (%s): " "invalid challenge response\n",