]> sjero.net Git - wget/commitdiff
Return CONERROR when accept_connection fails (#25015).
authorMicah Cowan <micah@cowan.name>
Tue, 16 Jun 2009 06:48:14 +0000 (23:48 -0700)
committerMicah Cowan <micah@cowan.name>
Tue, 16 Jun 2009 06:48:14 +0000 (23:48 -0700)
src/ChangeLog
src/ftp.c

index 8ad1382d834c2d521df1b97c58e2377fc5789afb..0cdf77b3b29a54db3303c3f458ab2ae4f65e0707 100644 (file)
@@ -1,5 +1,9 @@
 2009-06-15  Micah Cowan  <micah@cowan.name>
 
+       * 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.
index 171a38a44325a373f11c91cb659667226450f372..8e05a796bb56b864796412075cd39ecc0fd8b71c 100644 (file)
--- 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;
         }
     }