summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Taubert <ttaubert@mozilla.com>2017-08-11 11:38:55 +0200
committerTim Taubert <ttaubert@mozilla.com>2017-08-11 11:38:55 +0200
commitbed97136dd8c7e96e0159c641d273b501a87cb72 (patch)
tree6dbf090a0ed287934cf5d5d7bc204ac82da366b1
parent636abf11f3177b51830147cd2475c625ca9f1f91 (diff)
downloadnss-hg-bed97136dd8c7e96e0159c641d273b501a87cb72.tar.gz
Bug 1389263 - Fix possibly uninitialized value 'curve' in ssl_ecdh_unittest.cc r=franziskus
Differential Revision: https://nss-review.dev.mozaws.net/D404
-rw-r--r--gtests/ssl_gtest/ssl_ecdh_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtests/ssl_gtest/ssl_ecdh_unittest.cc b/gtests/ssl_gtest/ssl_ecdh_unittest.cc
index 1e406b6c2..f14a49817 100644
--- a/gtests/ssl_gtest/ssl_ecdh_unittest.cc
+++ b/gtests/ssl_gtest/ssl_ecdh_unittest.cc
@@ -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