iliaa Mon Feb 18 13:28:48 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/mysqli mysqli.c
Log:
Fixed a possible crash
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/mysqli.c?r1=1.72.2.16.2.17.2.16&r2=1.72.2.16.2.17.2.17&diff_format=u
Index: php-src/ext/mysqli/mysqli.c
diff -u php-src/ext/mysqli/mysqli.c:1.72.2.16.2.17.2.16
php-src/ext/mysqli/mysqli.c:1.72.2.16.2.17.2.17
--- php-src/ext/mysqli/mysqli.c:1.72.2.16.2.17.2.16 Tue Feb 12 22:05:34 2008
+++ php-src/ext/mysqli/mysqli.c Mon Feb 18 13:28:48 2008
@@ -15,7 +15,7 @@
| Author: Georg Richter <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
- $Id: mysqli.c,v 1.72.2.16.2.17.2.16 2008/02/12 22:05:34 andrey Exp $
+ $Id: mysqli.c,v 1.72.2.16.2.17.2.17 2008/02/18 13:28:48 iliaa Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -1403,7 +1403,9 @@
return;
}
- php_stream_close(mysql->li_stream);
+ if (mysql->li_stream) {
+ php_stream_close(mysql->li_stream);
+ }
free(data);
return;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php