Fixed possible crash

This commit is contained in:
Dmitry Stogov 2004-04-01 14:05:55 +00:00
parent 9dd0826623
commit f712d46b50

View file

@ -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);
}
}