Skip to content

Commit 730cd84

Browse files
committed
BearSSLClient: fix ctor initialization
1 parent e9f249b commit 730cd84

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/BearSSLClient.cpp

+2-11
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,9 @@ BearSSLClient::BearSSLClient(Client& client) :
4242
}
4343
#endif
4444

45-
BearSSLClient::BearSSLClient() :
46-
_noSNI(false)
45+
BearSSLClient::BearSSLClient()
46+
: BearSSLClient(nullptr, nullptr, 0)
4747
{
48-
_ecKey.curve = 0;
49-
_ecKey.x = NULL;
50-
_ecKey.xlen = 0;
51-
52-
for (size_t i = 0; i < BEAR_SSL_CLIENT_CHAIN_SIZE; i++) {
53-
_ecCert[i].data = NULL;
54-
_ecCert[i].data_len = 0;
55-
}
56-
_ecCertDynamic = false;
5748
}
5849

5950
BearSSLClient::BearSSLClient(Client& client, const br_x509_trust_anchor* myTAs, int myNumTAs)

0 commit comments

Comments
 (0)