From: David Eriksson Date: Thu, 9 Aug 2001 22:00:05 +0000 (+0000) Subject: Prevent potential crash X-Git-Tag: BEFORE_EXP_MERGE~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77298408b397146c53d1d856350fae573ec91268;p=php Prevent potential crash --- 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(