Skip to content

Commit

Permalink
Bug 1389263 - Fix possibly uninitialized value 'curve' in ssl_ecdh_un…
Browse files Browse the repository at this point in the history
…ittest.cc r=franziskus

Differential Revision: https://nss-review.dev.mozaws.net/D404
  • Loading branch information
Tim Taubert committed Aug 11, 2017
1 parent 4b7c82e commit 555eb0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gtests/ssl_gtest/ssl_ecdh_unittest.cc
Expand Up @@ -551,7 +551,7 @@ class ECCServerKEXFilter : public TlsHandshakeFilter {
// Replace the server key exchange message with an empty point
output->Allocate(4);
output->Write(0, 3U, 1); // named curve
uint32_t curve;
uint32_t curve = 0;
EXPECT_TRUE(input.Read(1, 2, &curve)); // get curve id
output->Write(1, curve, 2); // write curve id
output->Write(3, 0U, 1); // point length 0
Expand Down

0 comments on commit 555eb0b

Please sign in to comment.