]> granicus.if.org Git - php/commitdiff
- MFB: fix possible segfault (see test 004) always exists and returns NULL
authorPierre Joye <pajoye@php.net>
Mon, 9 Oct 2006 00:06:41 +0000 (00:06 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 9 Oct 2006 00:06:41 +0000 (00:06 +0000)
  on error (thx Bjori for the head up)

ext/openssl/openssl.c

index e244e304d5f44d21d286e86848d7e7cbc9083dd0..da626a915dcd70178baf3f4c8059e611fb22ad7a 100644 (file)
@@ -1801,8 +1801,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;