- Rebase to native Fedora version 2.19.5.
[fedora-mingw.git] / curl / curl-7.17.1-badsocket.patch
1 diff -up curl-7.17.1/lib/ftp.c.badsocket curl-7.17.1/lib/ftp.c
2 --- curl-7.17.1/lib/ftp.c.badsocket     2007-10-27 00:25:19.000000000 +0200
3 +++ curl-7.17.1/lib/ftp.c       2008-01-08 15:09:03.000000000 +0100
4 @@ -3228,7 +3228,8 @@ static CURLcode Curl_ftp_done(struct con
5      /* Note that we keep "use" set to TRUE since that (next) connection is
6         still requested to use SSL */
7    }
8 -  sclose(conn->sock[SECONDARYSOCKET]);
9 +  if(CURL_SOCKET_BAD != conn->sock[SECONDARYSOCKET])
10 +    sclose(conn->sock[SECONDARYSOCKET]);
11  
12    conn->sock[SECONDARYSOCKET] = CURL_SOCKET_BAD;
13