diff options
author | David Carlier <devnexen@gmail.com> | 2016-06-28 07:48:58 +0100 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2016-09-04 23:18:51 -0700 |
commit | 19350b6b7398edc9cc92e169aaf717585aa6ff11 (patch) | |
tree | 688de85773eccc7c6e0cf2b39fa732d6449a66a0 /ext/session/mod_files.c | |
parent | a2fdf0f4135f5a29e613c1c6c53d378dc6ff7bed (diff) | |
download | php-git-19350b6b7398edc9cc92e169aaf717585aa6ff11.tar.gz |
phpdbg: couple of network function return checks. Possible
overflow when copy the socket_path configuration.
Diffstat (limited to 'ext/session/mod_files.c')
-rw-r--r-- | ext/session/mod_files.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 64a6c47e00..521fadd1ee 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -296,6 +296,7 @@ static int ps_files_cleanup_dir(const char *dirname, zend_long maxlifetime) if (dirname_len >= MAXPATHLEN) { php_error_docref(NULL, E_NOTICE, "ps_files_cleanup_dir: dirname(%s) is too long", dirname); + closedir(dir); return (0); } |