diff options
| author | Sterling Hughes <sterling@php.net> | 2001-04-22 23:40:34 +0000 |
|---|---|---|
| committer | Sterling Hughes <sterling@php.net> | 2001-04-22 23:40:34 +0000 |
| commit | bb9fe151c3597b5b66a0f81aa5b90af516c752ed (patch) | |
| tree | 1809013bc1982cd97a939d02d32805b0fe187fa2 | |
| parent | c44da99842513cd65c92335ee0748a44985cb16a (diff) | |
| download | php-git-bb9fe151c3597b5b66a0f81aa5b90af516c752ed.tar.gz | |
Fix bug #10447.
| -rw-r--r-- | ext/ccvs/ccvs.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |
