diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-12-05 15:36:26 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-12-05 15:36:26 +0000 |
commit | e4505aefd9dc81eb2c51f2739f8dc626f7c3ce93 (patch) | |
tree | 91fe6560ef464cff67bedbc1ca69c77d5bb08877 /lib/easy.c | |
parent | d6b06128829d41c5e346bff424e48ddce0b7e990 (diff) | |
download | curl-e4505aefd9dc81eb2c51f2739f8dc626f7c3ce93.tar.gz |
Jared Lundell filed bug report #1604956
(http://curl.haxx.se/bug/view.cgi?id=1604956) which identified setting
CURLOPT_MAXCONNECTS to zero caused libcurl to SIGSEGV. Starting now, libcurl
will always internally use no less than 1 entry in the connection cache.
Diffstat (limited to 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/easy.c b/lib/easy.c index 7436017c0..73e145213 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -471,7 +471,7 @@ CURLcode curl_easy_perform(CURL *curl) if(!data->state.connc) { /* oops, no connection cache, make one up */ - data->state.connc = Curl_mk_connc(CONNCACHE_PRIVATE); + data->state.connc = Curl_mk_connc(CONNCACHE_PRIVATE, -1); if(!data->state.connc) return CURLE_OUT_OF_MEMORY; } @@ -561,7 +561,7 @@ CURL *curl_easy_duphandle(CURL *incurl) if(data->state.used_interface == Curl_if_multi) outcurl->state.connc = data->state.connc; else - outcurl->state.connc = Curl_mk_connc(CONNCACHE_PRIVATE); + outcurl->state.connc = Curl_mk_connc(CONNCACHE_PRIVATE, -1); if(!outcurl->state.connc) break; |