diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-15 10:53:33 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-15 10:53:33 +0200 |
commit | 917952453cef3df3e81a8d101de45d87b8d74f8e (patch) | |
tree | 9771789718b865b2e7e63154c6a228401c7413a3 | |
parent | e9c0367fdc4653331f398df36a10db1c54d6f3df (diff) | |
download | php-git-917952453cef3df3e81a8d101de45d87b8d74f8e.tar.gz |
Fix uninitialized cert_captured
This is a legimitimate bug and also shows up under valgrind.
-rw-r--r-- | ext/openssl/xp_ssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c index 5117eb2e99..9e481c6376 100644 --- a/ext/openssl/xp_ssl.c +++ b/ext/openssl/xp_ssl.c @@ -1819,7 +1819,7 @@ static int php_openssl_enable_crypto(php_stream *stream, { int n; int retry = 1; - int cert_captured; + int cert_captured = 0; X509 *peer_cert; if (cparam->inputs.activate && !sslsock->ssl_active) { |