From cd5546e5a75f0d285ffc1a8abe795c9115c112a8 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Sat, 2 Jan 2010 02:35:40 +0000 Subject: [PATCH] Use krb5int_count_etypes in rd_req_decoded_opt git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23567 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/rd_req_dec.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/krb5/krb/rd_req_dec.c b/src/lib/krb5/krb/rd_req_dec.c index a20eb4cac..49f07f7ed 100644 --- a/src/lib/krb5/krb/rd_req_dec.c +++ b/src/lib/krb5/krb/rd_req_dec.c @@ -455,10 +455,7 @@ rd_req_decoded_opt(krb5_context context, krb5_auth_context *auth_context, if (retval != 0) goto cleanup; } - for (permitted_etypes_len = 0; - permitted_etypes[permitted_etypes_len] != ENCTYPE_NULL; - permitted_etypes_len++) - ; + permitted_etypes_len = krb5int_count_etypes(permitted_etypes); } else { permitted_etypes = NULL; permitted_etypes_len = 0; -- 2.26.2