summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-04-15 10:53:33 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-04-15 10:53:33 +0200
commit917952453cef3df3e81a8d101de45d87b8d74f8e (patch)
tree9771789718b865b2e7e63154c6a228401c7413a3
parente9c0367fdc4653331f398df36a10db1c54d6f3df (diff)
downloadphp-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.c2
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) {