summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-11-02 07:18:24 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-11-02 07:18:24 +0100
commit3c6c2bcd5af8a111738f9190093dbf8a440d167b (patch)
treef81c67d0655042cf06586d3718957eb77c4aef5d
parent0e727979a565f644cf48783da5a7f41de2562052 (diff)
downloadgnurl-3c6c2bcd5af8a111738f9190093dbf8a440d167b.tar.gz
gnurl-3c6c2bcd5af8a111738f9190093dbf8a440d167b.tar.bz2
gnurl-3c6c2bcd5af8a111738f9190093dbf8a440d167b.zip
ftp: remove dead code in ftp_done
Coverity CID 1374358
-rw-r--r--lib/ftp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index b743d2419..70bb1dbcd 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -3303,8 +3303,6 @@ static CURLcode ftp_done(struct connectdata *conn, CURLcode status,
if(result) {
/* out of memory, but we can limp along anyway (and should try to
* since we may already be in the out of memory cleanup path) */
- if(!result)
- result = CURLE_OUT_OF_MEMORY;
ftpc->ctl_valid = FALSE; /* mark control connection as bad */
connclose(conn, "FTP: out of memory!"); /* mark for connection closure */
ftpc->prevpath = NULL; /* no path remembering */