mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix crash bug #14232
This commit is contained in:
parent
da977f8251
commit
0010418ea7
1 changed files with 3 additions and 1 deletions
|
@ -136,8 +136,10 @@ static void ps_files_open(ps_files *data, const char *key TSRMLS_DC)
|
|||
ps_files_close(data);
|
||||
|
||||
if (!ps_files_valid_key(key) ||
|
||||
!ps_files_path_create(buf, sizeof(buf), data, key))
|
||||
!ps_files_path_create(buf, sizeof(buf), data, key)) {
|
||||
data->fd = -1;
|
||||
return;
|
||||
}
|
||||
|
||||
data->lastkey = estrdup(key);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue