wrapper: Make sure we really burn the buffer.

This commit is contained in:
Andreas Schneider
2013-11-03 10:39:31 +01:00
parent ba4346f089
commit 646112b4e4

View File

@@ -158,7 +158,7 @@ void crypto_free(struct ssh_crypto_struct *crypto){
SAFE_FREE(crypto->kex_methods[i]);
}
memset(crypto,0,sizeof(*crypto));
BURN_BUFFER(crypto, sizeof(struct ssh_crypto_struct));
SAFE_FREE(crypto);
}