summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/session/mod_files.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c
index e2a63036db..b380cfe86b 100644
--- a/ext/session/mod_files.c
+++ b/ext/session/mod_files.c
@@ -170,11 +170,6 @@ static void ps_files_open(ps_files *data, const char *key)
ps_files_close(data);
if (php_session_valid_key(key) == FAILURE) {
- if (data->basedir) {
- efree(data->basedir);
- data->basedir = NULL;
- data->basedir_len = 0;
- }
php_error_docref(NULL, E_WARNING, "The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,'");
return;
}