From: John Kohl Date: Thu, 21 Feb 1991 16:22:22 +0000 (+0000) Subject: also erase and free the temp key X-Git-Tag: krb5-1.0-alpha4~212 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e30f75d3492fe8182f74be77c6d2f1fb847d6ab7;p=krb5.git also erase and free the temp key git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1760 dc483132-0cff-0310-8789-dd5450dbe970 --- 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;