summaryrefslogtreecommitdiff
path: root/ext/satellite
diff options
context:
space:
mode:
authorDavid Eriksson <eriksson@php.net>2001-08-09 22:00:05 +0000
committerDavid Eriksson <eriksson@php.net>2001-08-09 22:00:05 +0000
commit77298408b397146c53d1d856350fae573ec91268 (patch)
treefa1b2f3c6f7bd78cca82afe037b135d08e52cc36 /ext/satellite
parent81a7f27471002a9d512560b5c2c860b66d00eff8 (diff)
downloadphp-git-77298408b397146c53d1d856350fae573ec91268.tar.gz
Prevent potential crash
Diffstat (limited to 'ext/satellite')
-rw-r--r--ext/satellite/namedvalue_to_zval.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/ext/satellite/namedvalue_to_zval.c b/ext/satellite/namedvalue_to_zval.c
index 86fb2cb247..e024daf56a 100644
--- a/ext/satellite/namedvalue_to_zval.c
+++ b/ext/satellite/namedvalue_to_zval.c
@@ -56,8 +56,15 @@ static zend_bool satellite_any_to_zval_long(
const CORBA_any * pSource, zval * pDestination)
{
CORBA_long * p_value = (CORBA_long *)pSource->_value;
- ZVAL_LONG(pDestination, *p_value);
- return TRUE;
+ if (p_value)
+ {
+ ZVAL_LONG(pDestination, *p_value);
+ return TRUE;
+ }
+ else
+ {
+ return FALSE;
+ }
}
static zend_bool satellite_any_to_zval_short(