diff options
author | Antony Dovgal <tony2001@php.net> | 2016-02-03 15:11:59 +0300 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2016-02-03 15:11:59 +0300 |
commit | 6d87eb2727b6fb185e8c2c13038786885378226a (patch) | |
tree | 1d3d04f1798e71a719d3a0df573be5f459493c98 | |
parent | 64e8cfadf518c722cc9f1e35c5167b9763855201 (diff) | |
download | php-git-6d87eb2727b6fb185e8c2c13038786885378226a.tar.gz |
use correct element size, avoid reading stack
-rw-r--r-- | ext/curl/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 47b3b6fc41..9da1aa7acd 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -1751,7 +1751,7 @@ static php_curl *alloc_curl_handle() memset(&ch->err, 0, sizeof(struct _php_curl_error)); zend_llist_init(&ch->to_free->str, sizeof(char *), (llist_dtor_func_t)curl_free_string, 0); - zend_llist_init(&ch->to_free->post, sizeof(struct HttpPost), (llist_dtor_func_t)curl_free_post, 0); + zend_llist_init(&ch->to_free->post, sizeof(struct *HttpPost), (llist_dtor_func_t)curl_free_post, 0); ch->to_free->slist = emalloc(sizeof(HashTable)); zend_hash_init(ch->to_free->slist, 4, NULL, curl_free_slist, 0); |