]> granicus.if.org Git - php/commitdiff
fix possible segfault
authorAntony Dovgal <tony2001@php.net>
Sun, 10 Oct 2004 15:05:52 +0000 (15:05 +0000)
committerAntony Dovgal <tony2001@php.net>
Sun, 10 Oct 2004 15:05:52 +0000 (15:05 +0000)
ext/oci8/oci8.c

index 35b2011872e973b690374bc8bf2c911ffeece831..1fa1a9016e3b462e81699bb676cf695321537bc1 100644 (file)
@@ -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;