From 77e113332e357fbe08c5552e3bf0335016f29c42 Mon Sep 17 00:00:00 2001 From: jbj Date: Wed, 17 Feb 1999 17:20:17 +0000 Subject: [PATCH] Avoid double close in ufdOpen(). CVS patchset: 2806 CVS date: 1999/02/17 17:20:17 --- url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/url.c b/url.c index 32d4089..5466072 100644 --- a/url.c +++ b/url.c @@ -327,7 +327,7 @@ FD_t ufdOpen(const char *url, int flags, mode_t mode) break; fd->fd_url = u; if (ftpGetFileDesc(fd) < 0) - break; + fd = NULL; /* XXX fd already closed */ break; case URL_IS_HTTP: if (urlSplit(url, &u)) -- 2.7.4