From: Michael Wallner Date: Sat, 10 Feb 2007 08:41:38 +0000 (+0000) Subject: - add missing zval type check X-Git-Tag: RELEASE_1_5_0_RC2~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=a5779072b04fba8b47641d4f1e5f98a30445b1a7;p=m6w6%2Fext-http - add missing zval type check --- diff --git a/http_cookie_api.c b/http_cookie_api.c index 54d1d8e..9b7c9b8 100644 --- a/http_cookie_api.c +++ b/http_cookie_api.c @@ -284,7 +284,7 @@ PHP_HTTP_API http_cookie_list *_http_cookie_list_fromstruct(http_cookie_list *li if (SUCCESS == zend_hash_find(ht, "path", sizeof("path"), (void *) &tmp) && Z_TYPE_PP(tmp) == IS_STRING) { list->path = estrndup(Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); } - if (SUCCESS == zend_hash_find(ht, "domain", sizeof("domain"), (void *) &tmp)) { + if (SUCCESS == zend_hash_find(ht, "domain", sizeof("domain"), (void *) &tmp) && Z_TYPE_PP(tmp) == IS_STRING) { list->domain = estrndup(Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); }