From e30f75d3492fe8182f74be77c6d2f1fb847d6ab7 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 21 Feb 1991 16:22:22 +0000 Subject: [PATCH] also erase and free the temp key git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1760 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kdb/verify_mky.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/kdb/verify_mky.c b/src/lib/kdb/verify_mky.c index dd26b96c5..cf205afbb 100644 --- a/src/lib/kdb/verify_mky.c +++ b/src/lib/kdb/verify_mky.c @@ -69,6 +69,8 @@ krb5_encrypt_block *eblock; } else retval = krb5_finish_key(eblock); + memset((char *)tempkey.contents, 0, tempkey.length); + xfree(tempkey.contents); krb5_db_free_principal(&master_entry, nprinc); return retval; -- 2.26.2