fix curl crash on copy
authorMichael Wallner <mike@php.net>
Mon, 13 Feb 2012 13:27:46 +0000 (13:27 +0000)
committerMichael Wallner <mike@php.net>
Mon, 13 Feb 2012 13:27:46 +0000 (13:27 +0000)
php_http_curl.c

index 2d109225cb8e1180eb8e664a9f3ccf1ba7cfdb38..65b1746b8f7b38ac7a71f71c584d49fe108c3b44 100644 (file)
@@ -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;
        }