mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
- fix possible segfault (see test 004) always exists and returns NULL on
error
This commit is contained in:
parent
f850285c40
commit
fa8f1151aa
1 changed files with 2 additions and 2 deletions
|
@ -1890,8 +1890,8 @@ static EVP_PKEY * php_openssl_evp_from_zval(zval ** val, int public_key, char *
|
||||||
#define TMP_CLEAN \
|
#define TMP_CLEAN \
|
||||||
if (Z_TYPE(tmp) == IS_STRING) {\
|
if (Z_TYPE(tmp) == IS_STRING) {\
|
||||||
zval_dtor(&tmp); \
|
zval_dtor(&tmp); \
|
||||||
return NULL; \
|
} \
|
||||||
}
|
return NULL;
|
||||||
|
|
||||||
if (resourceval) {
|
if (resourceval) {
|
||||||
*resourceval = -1;
|
*resourceval = -1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue