From a5779072b04fba8b47641d4f1e5f98a30445b1a7 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sat, 10 Feb 2007 08:41:38 +0000 Subject: [PATCH] - add missing zval type check --- http_cookie_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- 2.30.2