summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/ftp.c
diff options
context:
space:
mode:
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