From fa8f1151aaf12d67aee724166f1de37c7eb1b6fd Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Mon, 9 Oct 2006 00:04:11 +0000 Subject: [PATCH] - fix possible segfault (see test 004) always exists and returns NULL on error --- ext/openssl/openssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 4fca466b675..01cec4baa40 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -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;