com php-src: Add php_openssl_store_errors to bailouts : ext/openssl/openssl.c
| From: | Leigh | Date: | Wed, 18 Jan 2017 15:02:52 +0000 |
| Subject: | com php-src: Add php_openssl_store_errors to bailouts : ext/openssl/openssl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-96790@lists.php.net to get a copy of this message | ||
Commit: 85589ca6606f70a3d1331e7d959ec60f4204a9fe
Author: Leigh <leigh@php.net> Wed, 18 Jan 2017 15:02:52 +0000
Parents: d2f07edf711a3f2d7418bc5b9059d9cba8bb361a
Branches: PHP-7.1
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=85589ca6606f70a3d1331e7d959ec60f4204a9fe
Log:
Add php_openssl_store_errors to bailouts
Changed paths:
M ext/openssl/openssl.c
Diff:
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index 6cefaf7..643ac26 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;
}