In the future, please MFH to PHP_5_2 such fixes.
--Jani
Greg Beaver kirjoitti:
cellog Thu May 14 13:36:56 2009 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/standard http_fopen_wrapper.c
Log:
MFH: fix potential free of NULL
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/http_fopen_wrapper.c?r1=1.99.2.12.2.9.2.15&r2=1.99.2.12.2.9.2.16&diff_format=u
Index: php-src/ext/standard/http_fopen_wrapper.c
diff -u php-src/ext/standard/http_fopen_wrapper.c:1.99.2.12.2.9.2.15
php-src/ext/standard/http_fopen_wrapper.c:1.99.2.12.2.9.2.16
--- php-src/ext/standard/http_fopen_wrapper.c:1.99.2.12.2.9.2.15 Tue May
5 00:31:56 2009
+++ php-src/ext/standard/http_fopen_wrapper.c Thu May 14 13:36:56 2009
@@ -19,7 +19,7 @@
| Sara Golemon <poll...@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: http_fopen_wrapper.c,v 1.99.2.12.2.9.2.15 2009/05/05 00:31:56 jani Exp $ */
+/* $Id: http_fopen_wrapper.c,v 1.99.2.12.2.9.2.16 2009/05/14 13:36:56 cellog Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -407,7 +407,9 @@
have_header |= HTTP_HEADER_TYPE;
}
}
- efree(tmp);
+ if (tmp) {
+ efree(tmp);
+ }
}
/* auth header if it was specified */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php