diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2002-03-06 07:49:49 +0000 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2002-03-06 07:49:49 +0000 |
commit | 0010418ea7955cb5048d99dfe15fb4522170cae2 (patch) | |
tree | 1de57ae6bb03413a10318da1c58dea937b4a5a16 /ext/session/mod_files.c | |
parent | da977f8251d8d86877079843af26dfd2de08c0e9 (diff) | |
download | php-git-0010418ea7955cb5048d99dfe15fb4522170cae2.tar.gz |
Fix crash bug #14232
Diffstat (limited to 'ext/session/mod_files.c')
-rw-r--r-- | ext/session/mod_files.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 9ca57b7eac..87752bf211 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -136,8 +136,10 @@ static void ps_files_open(ps_files *data, const char *key TSRMLS_DC) 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); |