X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_cookie_api.c;h=9b7c9b80f77d2fbe7cd16240583388b17341bd96;hp=360b79390325237e6d8f8b77e8bde99ae4aa7a7b;hb=dd07cdeb2ed9752a82c9d052b42af2d639a785fd;hpb=0e0def98a4ea4463bf8c21c6f161b2b37aa8c49d diff --git a/http_cookie_api.c b/http_cookie_api.c index 360b793..9b7c9b8 100644 --- a/http_cookie_api.c +++ b/http_cookie_api.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2006, Michael Wallner | + | Copyright (c) 2004-2007, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -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)); }