- fix possible segfault (see test 004) always exists and returns NULL on

error
This commit is contained in:
Pierre Joye 2006-10-09 00:04:11 +00:00
parent f850285c40
commit fa8f1151aa

View file

@ -1890,8 +1890,8 @@ static EVP_PKEY * php_openssl_evp_from_zval(zval ** val, int public_key, char *
#define TMP_CLEAN \
if (Z_TYPE(tmp) == IS_STRING) {\
zval_dtor(&tmp); \
return NULL; \
}
} \
return NULL;
if (resourceval) {
*resourceval = -1;