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

index 183448c1f9553088c42947a633fc507a696f4654..936c221057c961bcc45ecb90020e26e59bf2f9c4 100644 (file)
@@ -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;