aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-05-10 23:02:37 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-05-10 23:02:37 +0000
commita90e33ad713a9a6308b3344a928001f0b1eae645 (patch)
tree85b1b19dd46002f13e31085e5dbdcbb554069128
parent62ab21ce7dae1237f60d627144f766f8b13f4e2e (diff)
Hm, this doesn't feel right. The error bits returned from Curl_select() can
be returned at times when we want to ignore them. Test case 160 fails on Linux, so I modify the comparison to check for _only_ the error bit set...
-rw-r--r--lib/transfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index ba83a26b0..3c1b52a21 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -287,7 +287,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
fd_write = CURL_SOCKET_BAD;
select_res = Curl_select(fd_read, fd_write, 0);
- if(select_res & CSELECT_ERR) {
+ if(select_res == CSELECT_ERR) {
failf(data, "select/poll returned error");
return CURLE_SEND_ERROR;
}