]> granicus.if.org Git - curl/commitdiff
Use CURL_SOCKET_BAD.
authorGisle Vanem <gvanem@broadpark.no>
Wed, 9 Feb 2005 14:01:15 +0000 (14:01 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Wed, 9 Feb 2005 14:01:15 +0000 (14:01 +0000)
lib/ftp.c

index 72f55ebed006a9810396e3b915af88bac2e8487d..a14a786f453322a455b68ea9400416e6f32cd739 100644 (file)
--- 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;