com php-src: Store errors in openssl_dh_compute_key: ext/openssl/openssl.c
| From: | Jakub Zelenka | Date: | Mon, 08 Feb 2016 19:35:47 +0000 |
| Subject: | com php-src: Store errors in openssl_dh_compute_key: ext/openssl/openssl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92445@lists.php.net to get a copy of this message | ||
Commit: 664d693513c13a5b9b153e47e7b2d29c6311d43e
Author: Jakub Zelenka <bukka@php.net> Mon, 8 Feb 2016 19:35:47 +0000
Parents: 9b094be5f7099ba1f251fc00399c394ab763b744
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=664d693513c13a5b9b153e47e7b2d29c6311d43e
Log:
Store errors in openssl_dh_compute_key
Changed paths:
M ext/openssl/openssl.c
Diff:
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index 21c6e81..a0a49da 100644
--- a/ext/openssl/openssl.c
+++ b/ext/openssl/openssl.c
@@ -5776,6 +5776,7 @@ PHP_FUNCTION(openssl_dh_compute_key)
ZSTR_VAL(data)[len] = 0;
RETVAL_STR(data);
} else {
+ php_openssl_store_errors();
zend_string_release(data);
RETVAL_FALSE;
}