This commit is contained in:
Matt Johnston 2012-02-10 19:09:52 +08:00
commit bcf3a3ab93
2 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,7 @@ circbuffer * cbuf_new(unsigned int size) {
void cbuf_free(circbuffer * cbuf) {
m_burn(cbuf->data, cbuf->size);
m_free(cbuf->data);
m_free(cbuf);
}

View File

@ -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"))
}