summaryrefslogtreecommitdiffhomepage
path: root/common-kex.c
diff options
context:
space:
mode:
Diffstat (limited to 'common-kex.c')
-rw-r--r--common-kex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common-kex.c b/common-kex.c
index 173bf8c..2b3472b 100644
--- a/common-kex.c
+++ b/common-kex.c
@@ -366,6 +366,11 @@ void gen_new_keys() {
ses.keys = ses.newkeys;
ses.newkeys = NULL;
+ m_burn(C2S_IV, sizeof(C2S_IV));
+ m_burn(C2S_key, sizeof(C2S_key));
+ m_burn(S2C_IV, sizeof(S2C_IV));
+ m_burn(S2C_key, sizeof(S2C_key));
+
TRACE(("leave gen_new_keys"))
}