summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2006-10-09 00:04:11 +0000
committerPierre Joye <pajoye@php.net>2006-10-09 00:04:11 +0000
commitfa8f1151aaf12d67aee724166f1de37c7eb1b6fd (patch)
tree497b6cb605ec48f55c9038daf9adade4691bf6d8 /ext
parentf850285c40bb789bca4c27ca12741b0ead4dbd96 (diff)
downloadphp-git-fa8f1151aaf12d67aee724166f1de37c7eb1b6fd.tar.gz
- fix possible segfault (see test 004) always exists and returns NULL on
error
Diffstat (limited to 'ext')
-rw-r--r--ext/openssl/openssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index 4fca466b67..01cec4baa4 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;