]> granicus.if.org Git - curl/commitdiff
fix error introduced in last commit
authorYang Tse <yangsita@gmail.com>
Thu, 29 Mar 2007 00:11:55 +0000 (00:11 +0000)
committerYang Tse <yangsita@gmail.com>
Thu, 29 Mar 2007 00:11:55 +0000 (00:11 +0000)
lib/select.c

index a2e80e21cdac2f127f637b4bdefe16c7f2d5879f..e39174f1a53b318af59be06d84d6a5b5f6a63126 100644 (file)
@@ -237,6 +237,7 @@ int Curl_socket_ready(curl_socket_t readfd, curl_socket_t writefd, int timeout_m
       ret |= CSELECT_IN;
     if (pfd[num].revents & (POLLRDBAND|POLLPRI|POLLNVAL))
       ret |= CSELECT_ERR;
+    num++;
   }
   if (writefd != CURL_SOCKET_BAD) {
     if (pfd[num].revents & (POLLWRNORM|POLLOUT))