com php-src: Sorry, missed here should be checked: ext/curl/multi.c

From: Date: Fri, 08 May 2015 06:03:08 +0000
Subject: com php-src: Sorry, missed here should be checked: ext/curl/multi.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86653@lists.php.net to get a copy of this message
Commit: 9d4465e480675dd5e1aa464c4cf2a0c9d646a65a Author: Xinchen Hui <laruence@php.net> Fri, 8 May 2015 14:02:50 +0800 Parents: 33097bcff6c38f4493a0c5b7d697fe10a8c6867f Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9d4465e480675dd5e1aa464c4cf2a0c9d646a65a Log: Sorry, missed here should be checked Changed paths: M ext/curl/multi.c Diff: diff --git a/ext/curl/multi.c b/ext/curl/multi.c index 3158449..d5916d6 100644 --- a/ext/curl/multi.c +++ b/ext/curl/multi.c @@ -369,8 +369,9 @@ void _php_curl_multi_close(zend_resource *rsrc) /* {{{ */ pz_ch = (zval *)zend_llist_get_next_ex(&mh->easyh, &pos)) { /* ptr is NULL means it already be freed */ if (Z_RES_P(pz_ch)->ptr) { - ch = (php_curl *) zend_fetch_resource(Z_RES_P(pz_ch), le_curl_name, le_curl); - _php_curl_verify_handlers(ch, 0); + if ((ch = (php_curl *) zend_fetch_resource(Z_RES_P(pz_ch), le_curl_name, le_curl))) { + _php_curl_verify_handlers(ch, 0); + } } }

« previous php.cvs (#86653) next »