aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-05-07 07:07:55 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-05-07 07:07:55 +0000
commitad19f95f15bac425c1b37a7a260025d8fc9fe63c (patch)
tree60fb90ccaf979741a1ac5f336adf7dc3749d4092 /lib
parentbcfe3cb231d99922b4077c713d332d781c51ebc0 (diff)
James Bursa fixed a bug in the multi handle code that made the connection
cache grow a bit too much, beyond the normal 4 * easy_handles.
Diffstat (limited to 'lib')
-rw-r--r--lib/multi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/multi.c b/lib/multi.c
index c61958ea4..d9d7eb290 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -485,7 +485,7 @@ CURLMcode curl_multi_add_handle(CURLM *multi_handle,
the shared cache every single easy handle had 5 entries in their cache
by default. */
CURLcode res = Curl_ch_connc(easy_handle, multi->connc,
- multi->connc->num*4);
+ multi->num_easy * 4);
if(res != CURLE_OK)
/* TODO: we need to do some cleaning up here! */
return CURLM_OUT_OF_MEMORY;