From: Antony Dovgal Date: Sun, 10 Oct 2004 15:05:52 +0000 (+0000) Subject: fix possible segfault X-Git-Tag: php-5.0.3RC1~157 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45a4e123e779e4862987b19d92441b8e1e2b4b4b;p=php fix possible segfault --- diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 35b2011872..1fa1a9016e 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -3145,7 +3145,7 @@ static int _oci_session_cleanup(void *data TSRMLS_DC) if (le->type == 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;