From f5394cccb12532fd73e688c355738347742eaa48 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Wed, 9 Feb 2005 14:01:15 +0000 Subject: Use CURL_SOCKET_BAD. --- lib/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ftp.c b/lib/ftp.c index 72f55ebed..a14a786f4 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; -- cgit v1.2.3