mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
ftp: remove dead code in ftp_done
Coverity CID 1374358
This commit is contained in:
parent
0e727979a5
commit
3c6c2bcd5a
@ -3303,8 +3303,6 @@ static CURLcode ftp_done(struct connectdata *conn, CURLcode status,
|
|||||||
if(result) {
|
if(result) {
|
||||||
/* out of memory, but we can limp along anyway (and should try to
|
/* 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) */
|
* 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 */
|
ftpc->ctl_valid = FALSE; /* mark control connection as bad */
|
||||||
connclose(conn, "FTP: out of memory!"); /* mark for connection closure */
|
connclose(conn, "FTP: out of memory!"); /* mark for connection closure */
|
||||||
ftpc->prevpath = NULL; /* no path remembering */
|
ftpc->prevpath = NULL; /* no path remembering */
|
||||||
|
Loading…
Reference in New Issue
Block a user