Skip to content

Commit 9d4465e

Browse files
committed
Sorry, missed here should be checked
1 parent 33097bc commit 9d4465e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/curl/multi.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,9 @@ void _php_curl_multi_close(zend_resource *rsrc) /* {{{ */
369369
pz_ch = (zval *)zend_llist_get_next_ex(&mh->easyh, &pos)) {
370370
/* ptr is NULL means it already be freed */
371371
if (Z_RES_P(pz_ch)->ptr) {
372-
ch = (php_curl *) zend_fetch_resource(Z_RES_P(pz_ch), le_curl_name, le_curl);
373-
_php_curl_verify_handlers(ch, 0);
372+
if ((ch = (php_curl *) zend_fetch_resource(Z_RES_P(pz_ch), le_curl_name, le_curl))) {
373+
_php_curl_verify_handlers(ch, 0);
374+
}
374375
}
375376
}
376377

0 commit comments

Comments
 (0)