From 85589ca6606f70a3d1331e7d959ec60f4204a9fe Mon Sep 17 00:00:00 2001 From: Leigh Date: Wed, 18 Jan 2017 15:02:52 +0000 Subject: [PATCH] Add php_openssl_store_errors to bailouts --- ext/openssl/openssl.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.40.0