From: Yasuo Ohgaki Date: Wed, 6 Mar 2002 07:49:49 +0000 (+0000) Subject: Fix crash bug #14232 X-Git-Tag: php-4.2.0RC1~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0010418ea7955cb5048d99dfe15fb4522170cae2;p=php Fix crash bug #14232 --- 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);