]> granicus.if.org Git - php/commitdiff
MFB:Fixed a possible crash
authorIlia Alshanetsky <iliaa@php.net>
Mon, 18 Feb 2008 13:29:00 +0000 (13:29 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 18 Feb 2008 13:29:00 +0000 (13:29 +0000)
ext/mysqli/mysqli.c

index 4d74341ddab81214f58ee733ae2649c5029a2e06..bb5ca521070984c6b0af932fb73e40ce3f5f48a1 100644 (file)
@@ -1194,7 +1194,9 @@ void php_local_infile_end(void *ptr)
                return;
        }
 
-       php_stream_close(mysql->li_stream);
+       if (mysql->li_stream) {
+               php_stream_close(mysql->li_stream);
+       }
        free(data);
        return; 
 }