summaryrefslogtreecommitdiff
path: root/ext/curl/interface.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2016-02-03 15:11:59 +0300
committerAntony Dovgal <tony2001@php.net>2016-02-03 15:14:10 +0300
commit52e120fa908d29fb7b7dd5c05793da49f5a54003 (patch)
tree0efc26429cadac9ae8c08b80fb2741606c9debaf /ext/curl/interface.c
parent6f81e95c33fdebf5d219b9e83c4c15488e35d77c (diff)
downloadphp-git-52e120fa908d29fb7b7dd5c05793da49f5a54003.tar.gz
use correct element size, avoid reading stack
Diffstat (limited to 'ext/curl/interface.c')
-rw-r--r--ext/curl/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index dd823f538c..23c6e1835b 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);