diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2008-02-18 13:28:48 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2008-02-18 13:28:48 +0000 |
commit | fe9f641658609bcc2d786e37517342b7b53f7298 (patch) | |
tree | 262488f617f232fd3e68cf3451ed3252be356ab1 /ext/mysqli | |
parent | 4cf7073a844696867a73f15b7d8593d890ad9822 (diff) | |
download | php-git-fe9f641658609bcc2d786e37517342b7b53f7298.tar.gz |
Fixed a possible crash
Diffstat (limited to 'ext/mysqli')
-rw-r--r-- | ext/mysqli/mysqli.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c index 57442136d1..49cf91c110 100644 --- a/ext/mysqli/mysqli.c +++ b/ext/mysqli/mysqli.c @@ -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; } |