From: Daniel Stenberg Date: Wed, 14 Sep 2005 15:04:01 +0000 (+0000) Subject: oops, return error if an error did occur! X-Git-Tag: curl-7_15_0~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b8ccd0ae75369e34ee166650dd0aaf63b9af8a0;p=thirdparty%2Fcurl.git oops, return error if an error did occur! --- diff --git a/lib/ftp.c b/lib/ftp.c index 4d89723c7e..4dc72a4969 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -3819,6 +3819,7 @@ static CURLcode ftp_dophase_done(struct connectdata *conn, /* Failure detected, close the second socket if it was created already */ sclose(conn->sock[SECONDARYSOCKET]); conn->sock[SECONDARYSOCKET] = CURL_SOCKET_BAD; + return result; } if(ftp->no_transfer)