diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-03-11 13:13:35 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-03-11 13:13:35 +0000 |
commit | e545e33d5fd4f021220f09cf8fb05c66db2a4bf4 (patch) | |
tree | 0330232d9a4b0a572b066776f2615a770dcb355d /lib/multi.c | |
parent | 326e8b9fc1e6bc3b83c09ecaea96f10a403edcf5 (diff) |
Gisle Vanem's fixes to use CURL_SOCKET_BAD more instead of -1 for sockets.
Diffstat (limited to 'lib/multi.c')
-rw-r--r-- | lib/multi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/multi.c b/lib/multi.c index e4ee5c63d..0da68317a 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -486,7 +486,7 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles) * possibly know if the connection is in a good shape or not now. */ easy->easy_conn->bits.close = TRUE; - if(-1 !=easy->easy_conn->sock[SECONDARYSOCKET]) { + if(CURL_SOCKET_BAD != easy->easy_conn->sock[SECONDARYSOCKET]) { /* if we failed anywhere, we must clean up the secondary socket if it was used */ sclose(easy->easy_conn->sock[SECONDARYSOCKET]); |