Return CONERROR when accept_connection fails (#25015).

This commit is contained in:
Micah Cowan 2009-06-15 23:48:14 -07:00
parent 4bbcfc2a1d
commit 222a835bfb
2 changed files with 5 additions and 1 deletions

View 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.

View File

@ -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;
}
}