From: Leigh Date: Wed, 18 Jan 2017 15:02:52 +0000 (+0000) Subject: Add php_openssl_store_errors to bailouts X-Git-Tag: php-7.1.2RC1~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85589ca6606f70a3d1331e7d959ec60f4204a9fe;p=php Add php_openssl_store_errors to bailouts --- 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; }