X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/a0456b9c4635be8832fc5712454a75ec102b1176..e73eed8563d21ef9ce83725cb09a3c2e14a40dbe:/authenticate.c diff --git a/authenticate.c b/authenticate.c index b699724c..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 2 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 @@ -14,8 +15,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + * with this program; if not, visit the http://fsf.org website. */ #include "rsync.h" @@ -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",