krb5 commit: Fix zap size in confounder checksum mk_xorkey

Greg Hudson ghudson at MIT.EDU
Fri Mar 29 11:41:36 EDT 2013


https://github.com/krb5/krb5/commit/c388b28237386a8f41fcd88c06cc7049f295a69d
commit c388b28237386a8f41fcd88c06cc7049f295a69d
Author: Greg Hudson <ghudson at mit.edu>
Date:   Fri Mar 29 02:47:09 2013 -0400

    Fix zap size in confounder checksum mk_xorkey

 src/lib/crypto/krb/checksum_confounder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/lib/crypto/krb/checksum_confounder.c b/src/lib/crypto/krb/checksum_confounder.c
index afc473b..0e54953 100644
--- a/src/lib/crypto/krb/checksum_confounder.c
+++ b/src/lib/crypto/krb/checksum_confounder.c
@@ -53,7 +53,7 @@ mk_xorkey(krb5_key origkey, krb5_key *xorkey)
     xorkeyblock.contents = xorbytes;
 
     retval = krb5_k_create_key(0, &xorkeyblock, xorkey);
-    zapfree(xorbytes, sizeof(xorbytes));
+    zapfree(xorbytes, origkey->keyblock.length);
     return retval;
 }
 


More information about the cvs-krb5 mailing list