]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix zap size in confounder checksum mk_xorkey
authorGreg Hudson <ghudson@mit.edu>
Fri, 29 Mar 2013 06:47:09 +0000 (02:47 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 29 Mar 2013 06:47:09 +0000 (02:47 -0400)
src/lib/crypto/krb/checksum_confounder.c

index afc473bfe3fbf49e47dff3575df0a9f21eb13ae1..0e54953cac74d98ff3e2e78c6eefaececf06043a 100644 (file)
@@ -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;
 }