X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/4fd842f98df4970f6e49a0365dbed60774e56c09..e73eed8563d21ef9ce83725cb09a3c2e14a40dbe:/authenticate.c diff --git a/authenticate.c b/authenticate.c index e1591ea8..8991ac43 100644 --- a/authenticate.c +++ b/authenticate.c @@ -5,8 +5,9 @@ * Copyright (C) 2002-2007 Wayne Davison * * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -240,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",