cvs: php4 /ext/ccvs ccvs.c

From: Date: Sun, 22 Apr 2001 23:40:34 +0000
Subject: cvs: php4 /ext/ccvs ccvs.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-5212@lists.php.net to get a copy of this message
sterling Sun Apr 22 16:40:34 2001 EDT Modified files: /php4/ext/ccvs ccvs.c Log: Fix bug #10447. Index: php4/ext/ccvs/ccvs.c diff -u php4/ext/ccvs/ccvs.c:1.13 php4/ext/ccvs/ccvs.c:1.14 --- php4/ext/ccvs/ccvs.c:1.13 Sun Feb 25 22:06:48 2001 +++ php4/ext/ccvs/ccvs.c Sun Apr 22 16:40:34 2001 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ /* -* cvvs.c $Revision: 1.13 $ - PHP4 Interface to the RedHat CCVS API +* cvvs.c $Revision: 1.14 $ - PHP4 Interface to the RedHat CCVS API * ------- * Interfaces RedHat's CCVS [Credit Card Verification System] <http://www.redhat.com/products/ccvs/> * This code is ported from an original php3 interface written by RedHat's Doug DeJulio <ddj@redhat.com> @@ -27,10 +27,10 @@ /* * Code started on 2000.07.24@09.04.EST by Brendan W. McAdams <bmcadams@php.net> -* $Revision: 1.13 $ +* $Revision: 1.14 $ */ -static char const cvsid[] = "$Id: ccvs.c,v 1.13 2001/02/26 06:06:48 andi Exp $"; +static char const cvsid[] = "$Id: ccvs.c,v 1.14 2001/04/22 23:40:34 sterling Exp $"; #include <php.h> #include <stdlib.h> @@ -193,6 +193,11 @@ } 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);

« previous php.cvs (#5212) next »