]> granicus.if.org Git - php/commitdiff
Fix bug #10447.
authorSterling Hughes <sterling@php.net>
Sun, 22 Apr 2001 23:40:34 +0000 (23:40 +0000)
committerSterling Hughes <sterling@php.net>
Sun, 22 Apr 2001 23:40:34 +0000 (23:40 +0000)
ext/ccvs/ccvs.c

index 891a349fbf919edc93f1684c60146421ccca5f65..9e72e1382c2f4cdbbd08decc6f902842557e631b 100644 (file)
@@ -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);