From: Tom Yu Date: Fri, 15 Oct 2010 21:42:22 +0000 (+0000) Subject: pull up r24286 from trunk X-Git-Tag: krb5-1.8.4-final~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d4da5fa8b83164300b97d0d3b1a859c76335c65a;p=krb5.git pull up r24286 from trunk ------------------------------------------------------------------------ r24286 | ghudson | 2010-09-02 11:35:25 -0400 (Thu, 02 Sep 2010) | 7 lines ticket: 6764 tags: pullup target_version: 1.8.4 Properly search for MANDATORY-FOR-KDC authdata elements. Reported by Mike Roszkowski. ticket: 6764 target_version: 1.8.4 version_fixed: 1.8.4 status: resolved git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-8@24459 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/kdc_authdata.c b/src/kdc/kdc_authdata.c index cc44e2918..a916dab79 100644 --- a/src/kdc/kdc_authdata.c +++ b/src/kdc/kdc_authdata.c @@ -472,7 +472,7 @@ has_mandatory_for_kdc_authdata (krb5_context context, if (authdata != NULL) { for (i = 0; authdata[i] != NULL; i++) { - if (authdata[0]->ad_type == KRB5_AUTHDATA_MANDATORY_FOR_KDC) { + if (authdata[i]->ad_type == KRB5_AUTHDATA_MANDATORY_FOR_KDC) { ret = TRUE; break; }