From: Micah Cowan Date: Tue, 16 Jun 2009 06:48:14 +0000 (-0700) Subject: Return CONERROR when accept_connection fails (#25015). X-Git-Tag: v1.13~340 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=222a835bfbaa359ca51b8949ad0b465e97eff7c0 Return CONERROR when accept_connection fails (#25015). --- diff --git a/src/ChangeLog b/src/ChangeLog index 8ad1382d..0cdf77b3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2009-06-15 Micah Cowan + * ftp.c (getftp): If we can't accept the connection, return + CONERROR, not whatever the contents of err happens to be. Fixes + bug #25015. + * retr.c (fd_read_body): Make both args to progress_create consistent, resulting in an accurate progress display. Fixes bug #24948. diff --git a/src/ftp.c b/src/ftp.c index 171a38a4..8e05a796 100644 --- a/src/ftp.c +++ b/src/ftp.c @@ -945,7 +945,7 @@ Error in server response, closing control connection.\n")); if (dtsock < 0) { logprintf (LOG_NOTQUIET, "accept: %s\n", strerror (errno)); - return err; + return CONERROR; } }