]> granicus.if.org Git - php/commitdiff
- fix possible segfault (see test 004) always exists and returns NULL on
authorPierre Joye <pajoye@php.net>
Mon, 9 Oct 2006 00:04:11 +0000 (00:04 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 9 Oct 2006 00:04:11 +0000 (00:04 +0000)
  error

ext/openssl/openssl.c

index 4fca466b67562a3bf7db033bf10ea18a46b66dd0..01cec4baa40353ce92b19c8a3f648f16ead2a5e0 100644 (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;