oops, return error if an error did occur!
authorDaniel Stenberg <daniel@haxx.se>
Wed, 14 Sep 2005 15:04:01 +0000 (15:04 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 14 Sep 2005 15:04:01 +0000 (15:04 +0000)
lib/ftp.c

index 4d89723..4dc72a4 100644 (file)
--- 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)