Index: crypto/p224_spake.cc |
diff --git a/crypto/p224_spake.cc b/crypto/p224_spake.cc |
index ec0c416f48f759b822ea58788a9dc4a3541f9997..af3c2b8731e024adcb607de44987bda953f38bac 100644 |
--- a/crypto/p224_spake.cc |
+++ b/crypto/p224_spake.cc |
@@ -99,6 +99,9 @@ P224EncryptedKeyExchange::P224EncryptedKeyExchange( |
PeerType peer_type, const base::StringPiece& password) |
: state_(kStateInitial), |
is_server_(peer_type == kPeerTypeServer) { |
+ memset(&x_, 0, sizeof(x_)); |
+ memset(&expected_authenticator_, 0, sizeof(expected_authenticator_)); |
+ |
// x_ is a random scalar. |
base::RandBytes(x_, sizeof(x_)); |