From: Michael Wallner Date: Mon, 13 Feb 2012 13:27:46 +0000 (+0000) Subject: fix curl crash on copy X-Git-Tag: DEV_2-before-client~44 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=b80b16d3afcdd12ee21229a4bdfd8882e91aa0be fix curl crash on copy --- diff --git a/php_http_curl.c b/php_http_curl.c index 2d10922..65b1746 100644 --- a/php_http_curl.c +++ b/php_http_curl.c @@ -127,6 +127,7 @@ static void *php_http_curl_copy(void *opaque, void *handle TSRMLS_DC) void *ch; if ((ch = curl_easy_duphandle(handle))) { + curl_easy_reset(ch); get_storage(ch); return ch; }