From dd87f608a38d2d4d0afacbd9c481605cf68b1565 Mon Sep 17 00:00:00 2001 From: fenner Date: Tue, 17 Sep 2002 05:54:33 +0000 Subject: Make _fetch_connect() always set the error code. Tell ftp that _fetch_connect() always sets the error code (http already knew) --- lib/libfetch/ftp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/libfetch/ftp.c') 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) -- cgit v1.1