]> granicus.if.org Git - curl/commitdiff
Hm, this doesn't feel right. The error bits returned from Curl_select() can
authorDaniel Stenberg <daniel@haxx.se>
Tue, 10 May 2005 23:02:37 +0000 (23:02 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 10 May 2005 23:02:37 +0000 (23:02 +0000)
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...

lib/transfer.c

index ba83a26b08a122d7984d4ca8e22fad4696334abb..3c1b52a21ad9db9037f1803895a262f14c8a617d 100644 (file)
@@ -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;
   }