From d7fa0e9e6eaf6a212c1464b60ed1f04d81cdcac1 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Wed, 19 Dec 1990 11:34:44 +0000 Subject: [PATCH] Changed to zero out the keyblock before freeing it git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1568 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/free/f_keyblock.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/free/f_keyblock.c b/src/lib/krb5/free/f_keyblock.c index 9b43f18be..b6dabc1d1 100644 --- a/src/lib/krb5/free/f_keyblock.c +++ b/src/lib/krb5/free/f_keyblock.c @@ -23,8 +23,10 @@ void krb5_free_keyblock(val) register krb5_keyblock *val; { - if (val->contents) + if (val->contents) { + memset((char *)val->contents, 0, val->length); xfree(val->contents); + } xfree(val); return; } -- 2.26.2