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

index 57442136d186b94052e64269834f3b5e0bc52401..49cf91c1107299841d11cb28a46cb386992e4f68 100644 (file)
@@ -1403,7 +1403,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;
 }