summaryrefslogtreecommitdiff
path: root/ext/session/mod_files.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2013-08-04 17:43:20 -0700
committerStanislav Malyshev <stas@php.net>2013-08-04 17:43:20 -0700
commitb80d73ce154e7f740f9ada446f45dbcdac38a64b (patch)
tree104a5c50b6d5b6b5e3f573654c5f1123a63c4b71 /ext/session/mod_files.c
parent82b0e8be99065b61b622df21bbc7494d2fbca3cd (diff)
downloadphp-git-b80d73ce154e7f740f9ada446f45dbcdac38a64b.tar.gz
fix crash, enable session_id and fix test
Diffstat (limited to 'ext/session/mod_files.c')
-rw-r--r--ext/session/mod_files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c
index 6beee097b2..e5733b44f4 100644
--- a/ext/session/mod_files.c
+++ b/ext/session/mod_files.c
@@ -465,7 +465,7 @@ PS_CREATE_SID_FUNC(files)
do {
sid = php_session_create_id((void **)&data, newlen TSRMLS_CC);
/* Check collision */
- if (ps_files_key_exists(data, sid TSRMLS_CC) == SUCCESS) {
+ if (data && ps_files_key_exists(data, sid TSRMLS_CC) == SUCCESS) {
if (sid) {
efree(sid);
sid = NULL;