From 6787e44664b6ab6517448dfcbe15ea956a008696 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Wed, 7 Dec 2022 17:41:07 -0500 Subject: [PATCH] Minor bug fix which missed the last commit --- crypto/dkg/src/encryption.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/dkg/src/encryption.rs b/crypto/dkg/src/encryption.rs index 652fbbea..3e5b5b7c 100644 --- a/crypto/dkg/src/encryption.rs +++ b/crypto/dkg/src/encryption.rs @@ -92,7 +92,7 @@ impl Zeroize for Encryption { fn zeroize(&mut self) { self.enc_key.zeroize(); self.enc_pub_key.zeroize(); - for (_, value) in self.enc_keys.drain() { + for (_, mut value) in self.enc_keys.drain() { value.zeroize(); } }