From 51abd4c4782ab49877a61f4334a61347d264b8a9 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 17 Jan 2014 15:41:02 +0100 Subject: [PATCH] Fix a rare crash with unitialized CURLOPT_HTTPHEADER --- package.xml | 2 +- php_http_client_curl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.xml b/package.xml index d8a82bb..d0b01ea 100644 --- a/package.xml +++ b/package.xml @@ -48,7 +48,7 @@ v2: http://dev.iworks.at/ext-http/lcov/ext/http/ BSD, revised diff --git a/php_http_client_curl.c b/php_http_client_curl.c index 4033b9f..c691842 100644 --- a/php_http_client_curl.c +++ b/php_http_client_curl.c @@ -1492,8 +1492,8 @@ static STATUS php_http_client_curl_handler_prepare(php_http_client_curl_handler_ } } php_http_buffer_dtor(&header); - curl_easy_setopt(curl->handle, CURLOPT_HTTPHEADER, curl->options.headers); } + curl_easy_setopt(curl->handle, CURLOPT_HTTPHEADER, curl->options.headers); /* attach request body */ if ((body_size = php_http_message_body_size(msg->body))) { -- 2.30.2