From 3a5822585e51d279105f33c190eb6beecf3bd786 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Sun, 10 Oct 2004 15:04:21 +0000 Subject: [PATCH] fix possible segfault --- ext/oci8/oci8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 183448c1f9..936c221057 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -3144,7 +3144,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; -- 2.50.1