mirror of
https://github.com/php/php-src.git
synced 2025-08-16 22:18:50 +02:00
Fixed possible crash
This commit is contained in:
parent
9dd0826623
commit
f712d46b50
1 changed files with 5 additions and 4 deletions
|
@ -332,14 +332,15 @@ int parse_packet_soap(zval *this_ptr, char *buffer, int buffer_size, sdlFunction
|
|||
zval_dtor(return_value);
|
||||
ZVAL_NULL(return_value);
|
||||
} else if (param_count == 1) {
|
||||
zval **tmp;
|
||||
zval *tmp;
|
||||
|
||||
zend_hash_internal_pointer_reset(Z_ARRVAL_P(return_value));
|
||||
zend_hash_get_current_data(Z_ARRVAL_P(return_value), (void**)&tmp);
|
||||
(*tmp)->refcount++;
|
||||
tmp = *(zval**)tmp;
|
||||
tmp->refcount++;
|
||||
zval_dtor(return_value);
|
||||
*return_value = **tmp;
|
||||
FREE_ZVAL(*tmp);
|
||||
*return_value = *tmp;
|
||||
FREE_ZVAL(tmp);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue