Skip to content

Commit ae808ba

Browse files
author
Ambrish Bhargava
committed
Fix: #24013 SegV issue
1 parent d68f658 commit ae808ba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ibm_db2.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,11 @@ static int _php_ibm_db2_conn (zend_rsrc_list_entry *le TSRMLS_DC)
655655
{
656656
conn_handle *conn_res;
657657
int rc = 0;
658+
659+
/* Fix: #24013 */
660+
if (le->type != le_pconn_struct) {
661+
return ZEND_HASH_APPLY_KEEP;
662+
}
658663

659664
conn_res = (conn_handle *) le->ptr;
660665
if ( conn_res->handle_active ) {

0 commit comments

Comments
 (0)