From: Marcus Boerger Date: Mon, 10 Apr 2006 23:19:23 +0000 (+0000) Subject: - Coverity issue 59 X-Git-Tag: RELEASE_1_3~96 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4b16064660c926175c11eeab4699288e3d397ea;p=php - Coverity issue 59 --- diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index d6e75004eb..2735dfcfdc 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -2055,6 +2055,9 @@ static int php_sxe_iterator_current_key(zend_object_iterator *iter, zstr *str_ke if (intern != NULL && intern->node != NULL) { curnode = (xmlNodePtr)((php_libxml_node_ptr *)intern->node)->node; } + if (!curnode) { + return HASH_KEY_NON_EXISTANT; + } if (UG(unicode)) { UErrorCode status = U_ZERO_ERROR;