diff options
author | Mike Hommey <mh@glandium.org> | 2022-08-15 20:19:16 +0000 |
---|---|---|
committer | Mike Hommey <mh@glandium.org> | 2022-08-15 20:19:16 +0000 |
commit | 6a8c26294b1db090c8150be3d6d76ffd93301682 (patch) | |
tree | 53c6353f4aafdc78366768f84cabc5f407cf0ef9 | |
parent | 78714d75487483c0a99ed30aa46538f74202923b (diff) | |
download | nss-hg-6a8c26294b1db090c8150be3d6d76ffd93301682.tar.gz |
Bug 1784724 - Initialize local variables in TlsConnectTestBase::ConnectAndCheckCipherSuite. r=bbeurdouche,nss-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D154594
-rw-r--r-- | gtests/ssl_gtest/ssl_ciphersuite_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtests/ssl_gtest/ssl_ciphersuite_unittest.cc b/gtests/ssl_gtest/ssl_ciphersuite_unittest.cc index 2df0fd424..db0618e04 100644 --- a/gtests/ssl_gtest/ssl_ciphersuite_unittest.cc +++ b/gtests/ssl_gtest/ssl_ciphersuite_unittest.cc @@ -152,17 +152,17 @@ class TlsCipherSuiteTestBase : public TlsConnectTestBase { SendReceive(); // Check that we used the right cipher suite, auth type and kea type. - uint16_t actual; + uint16_t actual = TLS_NULL_WITH_NULL_NULL; EXPECT_TRUE(client_->cipher_suite(&actual)); EXPECT_EQ(cipher_suite_, actual); EXPECT_TRUE(server_->cipher_suite(&actual)); EXPECT_EQ(cipher_suite_, actual); - SSLAuthType auth; + SSLAuthType auth = ssl_auth_size; EXPECT_TRUE(client_->auth_type(&auth)); EXPECT_EQ(auth_type_, auth); EXPECT_TRUE(server_->auth_type(&auth)); EXPECT_EQ(auth_type_, auth); - SSLKEAType kea; + SSLKEAType kea = ssl_kea_size; EXPECT_TRUE(client_->kea_type(&kea)); EXPECT_EQ(kea_type_, kea); EXPECT_TRUE(server_->kea_type(&kea)); |