diff options
Diffstat (limited to 'lib')
-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 bc69996e6..bc932640a 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -828,7 +828,7 @@ CURLMcode curl_multi_wait(CURLM *multi_handle, curlfds = nfds; /* number of internal file descriptors */ nfds += extra_nfds; /* add the externally provided ones */ - if(nfds) { + if(nfds || extra_nfds) { ufds = malloc(nfds * sizeof(struct pollfd)); if(!ufds) return CURLM_OUT_OF_MEMORY; |