]> granicus.if.org Git - curl/commitdiff
ftp: remove dead code in ftp_done
authorDaniel Stenberg <daniel@haxx.se>
Wed, 2 Nov 2016 06:18:24 +0000 (07:18 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 2 Nov 2016 06:18:24 +0000 (07:18 +0100)
Coverity CID 1374358

lib/ftp.c

index b743d2419609dfbdeb5a8f35a3a80de1fc2a0a42..70bb1dbcd25bca5aa32bb1b6cc4ec5a354c9d5c5 100644 (file)
--- 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 */