com php-src: refix bug #69111, crash in 5.6 only: ext/session/m od_files.c
| From: | Ferenc Kovacs | Date: | Tue, 02 Feb 2016 23:58:07 +0000 |
| Subject: | com php-src: refix bug #69111, crash in 5.6 only: ext/session/m od_files.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-90926@lists.php.net to get a copy of this message | ||
Commit: a793b709086eed655bc98f933d838b8679b28920
Author: Anatol Belski <ab@php.net> Fri, 29 Jan 2016 11:24:19 +0100
Committer: Ferenc Kovacs <tyrael@php.net> Wed, 3 Feb 2016 00:58:07 +0100
Parents: 8696d25dee08955c6ce4b8bcb3ae1bc8db843afd
Branches: PHP-5.6.18
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a793b709086eed655bc98f933d838b8679b28920
Log:
refix bug #69111, crash in 5.6 only
Bugs:
https://bugs.php.net/69111
Changed paths:
M ext/session/mod_files.c
Diff:
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c
index 75b19a7..7e37381 100644
--- a/ext/session/mod_files.c
+++ b/ext/session/mod_files.c
@@ -360,6 +360,10 @@ PS_READ_FUNC(files)
PS(session_status) = php_session_active;
}
+ if (!PS(id)) {
+ return FAILURE;
+ }
+
ps_files_open(data, PS(id) TSRMLS_CC);
if (data->fd < 0) {
return FAILURE;