diff options
| author | Bill Fenner <fenner@FreeBSD.org> | 2002-09-17 05:54:33 +0000 |
|---|---|---|
| committer | Bill Fenner <fenner@FreeBSD.org> | 2002-09-17 05:54:33 +0000 |
| commit | 40cfbfd5085b953f00e6fd3feb4d68ad34cf3312 (patch) | |
| tree | a41fa6f3686892d2962027e74dfb5742f3f39fc4 /lib/libfetch/common.c | |
| parent | 117f87fe9f2ea1cad51a75927852552a0c6f16f6 (diff) | |
Notes
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 cb69ec0f0081..4b2e6ea3fdfa 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); } |
