From e1365586bae0591541b72ca8a223fa73a57aa2bd Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Thu, 2 Sep 2010 15:35:25 +0000 Subject: [PATCH] Properly search for MANDATORY-FOR-KDC authdata elements. Reported by Mike Roszkowski. ticket: 6764 tags: pullup target_version: 1.8.4 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24286 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/kdc_authdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kdc/kdc_authdata.c b/src/kdc/kdc_authdata.c index f46fa15fc..fa6a72e39 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; } -- 2.26.2