Skip to content

Commit 9179524

Browse files
committed
Fix uninitialized cert_captured
This is a legimitimate bug and also shows up under valgrind.
1 parent e9c0367 commit 9179524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/openssl/xp_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,7 @@ static int php_openssl_enable_crypto(php_stream *stream,
18191819
{
18201820
int n;
18211821
int retry = 1;
1822-
int cert_captured;
1822+
int cert_captured = 0;
18231823
X509 *peer_cert;
18241824

18251825
if (cparam->inputs.activate && !sslsock->ssl_active) {

0 commit comments

Comments
 (0)