From: Gisle Vanem Date: Wed, 9 Feb 2005 14:01:15 +0000 (+0000) Subject: Use CURL_SOCKET_BAD. X-Git-Tag: curl-7_13_1~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f5394cccb12532fd73e688c355738347742eaa48;p=thirdparty%2Fcurl.git Use CURL_SOCKET_BAD. --- diff --git a/lib/ftp.c b/lib/ftp.c index 72f55ebed0..a14a786f45 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -992,7 +992,7 @@ static CURLcode ftp_state_use_port(struct connectdata *conn, /* we set the secondary socket variable to this for now, it is only so that the cleanup function will close it in case we fail before the true secondary stuff is made */ - if(-1 != conn->sock[SECONDARYSOCKET]) + if(CURL_SOCKET_BAD != conn->sock[SECONDARYSOCKET]) sclose(conn->sock[SECONDARYSOCKET]); conn->sock[SECONDARYSOCKET] = portsock;