summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/ftp.c
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>2002-09-17 05:54:33 +0000
committerfenner <fenner@FreeBSD.org>2002-09-17 05:54:33 +0000
commitdd87f608a38d2d4d0afacbd9c481605cf68b1565 (patch)
treea41fa6f3686892d2962027e74dfb5742f3f39fc4 /lib/libfetch/ftp.c
parent024665d45e967fede40c4d15da08470800f4bd63 (diff)
downloadFreeBSD-src-dd87f608a38d2d4d0afacbd9c481605cf68b1565.zip
FreeBSD-src-dd87f608a38d2d4d0afacbd9c481605cf68b1565.tar.gz
Make _fetch_connect() always set the error code.
Tell ftp that _fetch_connect() always sets the error code (http already knew)
Diffstat (limited to 'lib/libfetch/ftp.c')
-rw-r--r--lib/libfetch/ftp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c
index b08dd30..7897adf 100644
--- a/lib/libfetch/ftp.c
+++ b/lib/libfetch/ftp.c
@@ -796,10 +796,9 @@ _ftp_connect(struct url *url, struct url *purl, const char *flags)
}
/* check connection */
- if (conn == NULL) {
- _fetch_syserr();
+ if (conn == NULL)
+ /* _fetch_connect() has already set an error code */
return (NULL);
- }
/* expect welcome message */
if ((e = _ftp_chkerr(conn)) != FTP_SERVICE_READY)
OpenPOWER on IntegriCloud