From 241c3aece6cb5569b525797c5bd3a3f64a7efad7 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Wed, 9 Apr 2003 18:19:18 +0000 Subject: etype info handling infinite loop If a request contains no des-cbc-crc enctype bumt des-cbc-crc or des-cbc-md5 existis in the database then an infinite loop is created. Fix etype info handling to avoid this. ticket: new Tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15332 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/kdc_preauth.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/kdc/kdc_preauth.c') diff --git a/src/kdc/kdc_preauth.c b/src/kdc/kdc_preauth.c index f5c1e121ab..87b0358d7d 100644 --- a/src/kdc/kdc_preauth.c +++ b/src/kdc/kdc_preauth.c @@ -568,8 +568,10 @@ get_etype_info(krb5_context context, krb5_kdc_req *request, while (1) { if (!request_contains_enctype(context, request, db_etype)) { - if (db_etype == ENCTYPE_DES_CBC_CRC) - continue; + if (db_etype == ENCTYPE_DES_CBC_CRC) { + db_etype = ENCTYPE_DES_CBC_MD5; + continue; + } else break; } -- cgit