use krb5_checksum_size macro
authorJohn Kohl <jtkohl@mit.edu>
Wed, 1 May 1991 11:20:24 +0000 (11:20 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 1 May 1991 11:20:24 +0000 (11:20 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2080 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/kdc_util.c

index 58bdc7c587c85f21b8ce7065915c0187ecd0dcb3..d6aac7aa6411971dee513ca17a1bdd1b88bda7a1 100644 (file)
@@ -237,7 +237,7 @@ krb5_tkt_authent **ret_authdat;
 
     /* check application checksum vs. tgs request */
     if (!(our_cksum.contents = (krb5_octet *)
-         malloc(krb5_cksumarray[our_cksum.checksum_type]->checksum_length))) {
+         malloc(krb5_checksum_size(our_cksum.checksum_type)))) {
        krb5_free_ap_req(apreq);
        return ENOMEM; /* XXX cktype nosupp */
     }