cvs: php4 /ext/session mod_files.c
| From: | Yasuo Ohgaki | Date: | Wed, 06 Mar 2002 07:49:50 +0000 |
| Subject: | cvs: php4 /ext/session mod_files.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-9714@lists.php.net to get a copy of this message | ||
yohgaki Wed Mar 6 02:49:50 2002 EDT
Modified files:
/php4/ext/session mod_files.c
Log:
Fix crash bug #14232
Index: php4/ext/session/mod_files.c
diff -u php4/ext/session/mod_files.c:1.69 php4/ext/session/mod_files.c:1.70
--- php4/ext/session/mod_files.c:1.69 Tue Mar 5 19:05:14 2002
+++ php4/ext/session/mod_files.c Wed Mar 6 02:49:49 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mod_files.c,v 1.69 2002/03/06 00:05:14 yohgaki Exp $ */
+/* $Id: mod_files.c,v 1.70 2002/03/06 07:49:49 yohgaki Exp $ */
#include "php.h"
@@ -136,8 +136,10 @@
ps_files_close(data);
if (!ps_files_valid_key(key) ||
- !ps_files_path_create(buf, sizeof(buf), data, key))
+ !ps_files_path_create(buf, sizeof(buf), data, key)) {
+ data->fd = -1;
return;
+ }
data->lastkey = estrdup(key);