diff options
Diffstat (limited to 'ext/openssl/openssl.c')
-rw-r--r-- | ext/openssl/openssl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 6cefaf7d65..643ac26fd4 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -2311,6 +2311,7 @@ PHP_FUNCTION(openssl_x509_parse) bn_serial = ASN1_INTEGER_to_BN(asn1_serial, NULL); /* Can return NULL on error or memory allocation failure */ if (!bn_serial) { + php_openssl_store_errors(); RETURN_FALSE; } @@ -2318,6 +2319,7 @@ PHP_FUNCTION(openssl_x509_parse) BN_free(bn_serial); /* Can return NULL on error or memory allocation failure */ if (!hex_serial) { + php_openssl_store_errors(); RETURN_FALSE; } |