From b80b16d3afcdd12ee21229a4bdfd8882e91aa0be Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 13 Feb 2012 13:27:46 +0000 Subject: [PATCH] fix curl crash on copy --- php_http_curl.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2