Mercurial > dropbear
comparison common-kex.c @ 648:4222a1039b06
Clear a few buffers when possible
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 10 Feb 2012 18:32:18 +0800 |
parents | 3aa74a4d83ae |
children | 03073a27abb3 4edea9f363d0 |
comparison
equal
deleted
inserted
replaced
634:a98e2ced7bfa | 648:4222a1039b06 |
---|---|
363 /* Switch over to the new keys */ | 363 /* Switch over to the new keys */ |
364 m_burn(ses.keys, sizeof(struct key_context)); | 364 m_burn(ses.keys, sizeof(struct key_context)); |
365 m_free(ses.keys); | 365 m_free(ses.keys); |
366 ses.keys = ses.newkeys; | 366 ses.keys = ses.newkeys; |
367 ses.newkeys = NULL; | 367 ses.newkeys = NULL; |
368 | |
369 m_burn(C2S_IV, sizeof(C2S_IV)); | |
370 m_burn(C2S_key, sizeof(C2S_key)); | |
371 m_burn(S2C_IV, sizeof(S2C_IV)); | |
372 m_burn(S2C_key, sizeof(S2C_key)); | |
368 | 373 |
369 TRACE(("leave gen_new_keys")) | 374 TRACE(("leave gen_new_keys")) |
370 } | 375 } |
371 | 376 |
372 #ifndef DISABLE_ZLIB | 377 #ifndef DISABLE_ZLIB |