diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-04-25 20:20:15 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-04-25 20:20:15 +0000 |
commit | ed8cb57151bf0e08641024e1edadb6ba7c25a4a8 (patch) | |
tree | 5a9200d7404f4dff264d44e45fc0c5d094a85384 /lib | |
parent | 9bdb05b4d6aec79d5f6ef9a2627a746b368ec536 (diff) |
Sonia Subramanian brought our attention to a problem that happens if you set
the CURLOPT_RESUME_FROM or CURLOPT_RANGE options and an existing connection
in the connection cache is closed to make room for the new one when you call
curl_easy_perform(). It would then wrongly free range-related data in the
connection close funtion.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -1830,16 +1830,6 @@ CURLcode Curl_disconnect(struct connectdata *conn) Curl_expire(data, 0); /* shut off timers */ Curl_hostcache_prune(data); /* kill old DNS cache entries */ - /* - * The range string is usually freed in curl_done(), but we might - * get here *instead* if we fail prematurely. Thus we need to be able - * to free this resource here as well. - */ - if(data->reqdata.rangestringalloc) { - free(data->reqdata.range); - data->reqdata.rangestringalloc = FALSE; - } - if((conn->ntlm.state != NTLMSTATE_NONE) || (conn->proxyntlm.state != NTLMSTATE_NONE)) { /* Authentication data is a mix of connection-related and sessionhandle- |