diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2006-04-18 00:31:45 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2006-04-18 00:31:45 +0000 |
| commit | 101d925baaa9791fd3d70e6fe5368e984a36f0b7 (patch) | |
| tree | a5b84176b03f4d13a5558865911d8b64d5197f55 /ext/session | |
| parent | 76419e13aa959a5deff023ef1247f92f6e875545 (diff) | |
| download | php-git-101d925baaa9791fd3d70e6fe5368e984a36f0b7.tar.gz | |
Commit the actual fix
Diffstat (limited to 'ext/session')
| -rw-r--r-- | ext/session/mod_files.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 1bdbdfdcde..4c2a0a03d9 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -397,10 +397,12 @@ PS_DESTROY_FUNC(files) if (!ps_files_path_create(buf, sizeof(buf), data, key)) return FAILURE; - ps_files_close(data); + if (data->fd != -1) { + ps_files_close(data); - if (VCWD_UNLINK(buf) == -1) { - return FAILURE; + if (VCWD_UNLINK(buf) == -1) { + return FAILURE; + } } return SUCCESS; |
