diff options
author | Theodore Tso <tytso@mit.edu> | 1990-12-19 11:34:44 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1990-12-19 11:34:44 +0000 |
commit | d7fa0e9e6eaf6a212c1464b60ed1f04d81cdcac1 (patch) | |
tree | 35236fcf70fbd1f86da2b2da7b74188630b76121 /src/lib/krb5/free/f_keyblock.c | |
parent | 0b950745e7a562e33c786f40058ee99228e5e317 (diff) | |
download | krb5-d7fa0e9e6eaf6a212c1464b60ed1f04d81cdcac1.tar.gz krb5-d7fa0e9e6eaf6a212c1464b60ed1f04d81cdcac1.tar.xz krb5-d7fa0e9e6eaf6a212c1464b60ed1f04d81cdcac1.zip |
Changed to zero out the keyblock before freeing it
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1568 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/free/f_keyblock.c')
-rw-r--r-- | src/lib/krb5/free/f_keyblock.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |