summaryrefslogtreecommitdiff
path: root/ext/session/mod_files.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/session/mod_files.c')
-rw-r--r--ext/session/mod_files.c4
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);