From: Greg Hudson Date: Fri, 29 Mar 2013 06:47:09 +0000 (-0400) Subject: Fix zap size in confounder checksum mk_xorkey X-Git-Tag: krb5-1.12-alpha1~236 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c388b28237386a8f41fcd88c06cc7049f295a69d;p=thirdparty%2Fkrb5.git Fix zap size in confounder checksum mk_xorkey --- diff --git a/src/lib/crypto/krb/checksum_confounder.c b/src/lib/crypto/krb/checksum_confounder.c index afc473bfe3..0e54953cac 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; }