diff options
author | Leigh <leigh@php.net> | 2017-01-18 15:02:52 +0000 |
---|---|---|
committer | Leigh <leigh@php.net> | 2017-01-18 15:02:52 +0000 |
commit | 85589ca6606f70a3d1331e7d959ec60f4204a9fe (patch) | |
tree | f998cdb0ab6e733e05b4e71efb907ccef85a8fc4 | |
parent | d2f07edf711a3f2d7418bc5b9059d9cba8bb361a (diff) | |
download | php-git-85589ca6606f70a3d1331e7d959ec60f4204a9fe.tar.gz |
Add php_openssl_store_errors to bailouts
-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; } |