Skip to content

Commit

Permalink
Fix uninitialized cert_captured
Browse files Browse the repository at this point in the history
This is a legimitimate bug and also shows up under valgrind.
  • Loading branch information
nikic committed Apr 15, 2019
1 parent e9c0367 commit 9179524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/openssl/xp_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9179524

Please sign in to comment.