aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2005-02-09 14:01:15 +0000
committerGisle Vanem <gvanem@broadpark.no>2005-02-09 14:01:15 +0000
commitf5394cccb12532fd73e688c355738347742eaa48 (patch)
tree675d313ca17dc37ac12ccae47f3c634350e09771 /lib
parent64dd9c76563269ca7a0aec0642b396e83b16c8f6 (diff)
Use CURL_SOCKET_BAD.
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
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;