From: Sterling Hughes Date: Sun, 22 Apr 2001 23:40:34 +0000 (+0000) Subject: Fix bug #10447. X-Git-Tag: php-4.0.6RC1~340 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb9fe151c3597b5b66a0f81aa5b90af516c752ed;p=php Fix bug #10447. --- diff --git a/ext/ccvs/ccvs.c b/ext/ccvs/ccvs.c index 891a349fbf..9e72e1382c 100644 --- a/ext/ccvs/ccvs.c +++ b/ext/ccvs/ccvs.c @@ -193,6 +193,11 @@ PHP_FUNCTION(ccvs_new) /* cv_new() */ } convert_to_string_ex(psess); + if (!Z_STRVAL_PP(psess)) { + php_error(E_WARNING, "Invalid session to ccvs_new()"); + RETURN_FALSE; + } + sess = hks_ptr_stringtoptr((*psess)->value.str.val); convert_to_string_ex(pinvoice);