From 3c6c2bcd5af8a111738f9190093dbf8a440d167b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 2 Nov 2016 07:18:24 +0100 Subject: ftp: remove dead code in ftp_done Coverity CID 1374358 --- lib/ftp.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/ftp.c') 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 */ -- cgit v1.2.3