diff options
Diffstat (limited to 'lib/libfetch/common.c')
-rw-r--r-- | lib/libfetch/common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c index cb69ec0..4b2e6ea 100644 --- a/lib/libfetch/common.c +++ b/lib/libfetch/common.c @@ -271,8 +271,10 @@ _fetch_connect(const char *host, int port, int af, int verbose) return (NULL); } - if ((conn = _fetch_reopen(sd)) == NULL) + if ((conn = _fetch_reopen(sd)) == NULL) { + _fetch_syserr(); close(sd); + } return (conn); } |