aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-12-20 23:33:54 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-12-20 23:33:54 +0100
commit926916e28e501da6b2dd101773650809633760c9 (patch)
tree5bfd9785b31ef96f5f0474f09b3bf4d130af9056
parent3d6e2ec925ace9b3f63eb64311099c8fbf002b7a (diff)
Curl_socket_check: enlarge poll struct array to 3
This function was introduced in commit 5527417afae0 and as pointed out by Gokhan Sengun, the array with poll structs must large enough to hold 3 sockets since that is what the function can accept. It could be noted that he had this fixed in his patch as posted in http://curl.haxx.se/mail/lib-2011-12/0179.html Bug: http://curl.haxx.se/mail/lib-2011-12/0228.html Reported by: Gokhan Sengun
-rw-r--r--lib/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/select.c b/lib/select.c
index 549da077c..40673ec9e 100644
--- a/lib/select.c
+++ b/lib/select.c
@@ -153,7 +153,7 @@ int Curl_socket_check(curl_socket_t readfd0, /* two sockets to read from */
long timeout_ms) /* milliseconds to wait */
{
#ifdef HAVE_POLL_FINE
- struct pollfd pfd[2];
+ struct pollfd pfd[3];
int num;
#else
struct timeval pending_tv;