diff options
author | Ken Hornstein <kenh@cmf.nrl.navy.mil> | 2002-11-14 15:48:36 +0000 |
---|---|---|
committer | Ken Hornstein <kenh@cmf.nrl.navy.mil> | 2002-11-14 15:48:36 +0000 |
commit | 66a8439e84c56c3a12545b83ac9cd96d2e29975b (patch) | |
tree | bc2ec126ec2f30ddb2baea69394960f57042240b /src/lib/crypto | |
parent | 72d8f8901985324b50a9b8c255170ec08f9b7eea (diff) | |
download | krb5-66a8439e84c56c3a12545b83ac9cd96d2e29975b.zip krb5-66a8439e84c56c3a12545b83ac9cd96d2e29975b.tar.gz krb5-66a8439e84c56c3a12545b83ac9cd96d2e29975b.tar.bz2 |
Wrong size for memset()s in combine_keys()
The wrong size was used in the final memset()'s of various combine_key
temporary variables. Pointed out by Ken Renard.
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14997 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/crypto')
-rw-r--r-- | src/lib/crypto/combine_keys.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/crypto/combine_keys.c b/src/lib/crypto/combine_keys.c index 3bf4c2b..6466a95 100644 --- a/src/lib/crypto/combine_keys.c +++ b/src/lib/crypto/combine_keys.c @@ -242,10 +242,10 @@ krb5_error_code krb5int_c_combine_keys ret = 0; cleanup: - memset(r1, 0, keylength); - memset(r2, 0, keylength); + memset(r1, 0, keybytes); + memset(r2, 0, keybytes); memset(rnd, 0, keybytes); - memset(combined, 0, keylength * 2); + memset(combined, 0, keybytes * 2); memset(output, 0, keylength); free(r1); |