From: Antony Dovgal Date: Sun, 10 Oct 2004 15:06:20 +0000 (+0000) Subject: MFH: fix possible segfault X-Git-Tag: php-4.3.10RC1~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a4fc5e0ee0c3780f1f7eef0c2f47cda2a99c7cc;p=php MFH: fix possible segfault --- diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index c74830a1de..30459d085b 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -2598,7 +2598,7 @@ static int _oci_session_cleanup(void *data TSRMLS_DC) list_entry *le = (list_entry *) data; if (Z_TYPE_P(le) == le_session) { oci_server *server = ((oci_session*) le->ptr)->server; - if (server->is_open == 2) + if (server && server->is_open == 2) return 1; } return 0;