From 6826580cc5875fb2eba1fdcbf0bfff1d2484d077 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Mon, 24 Jun 2002 22:31:16 +0000 Subject: Fix etype info; wrong termination condition used in get_etype_info git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14565 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/ChangeLog | 4 ++++ src/kdc/kdc_preauth.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/kdc') diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index 1805af0977..56fe212ff0 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,7 @@ +2002-06-24 Sam Hartman + + * kdc_preauth.c (get_etype_info): We get KRB5_KDB_NO_MATCHING_KEY not ENOENT; per 5.27 of kdb_xdr.c. + 2002-04-05 Ken Raeburn * do_as_req.c (process_as_req): Call krb5_c_valid_enctype instead diff --git a/src/kdc/kdc_preauth.c b/src/kdc/kdc_preauth.c index fbc44bde09..8352a3fdbd 100644 --- a/src/kdc/kdc_preauth.c +++ b/src/kdc/kdc_preauth.c @@ -543,7 +543,7 @@ get_etype_info(context, request, client, server, pa_data) while (1) { retval = krb5_dbe_search_enctype(context, client, &start, -1, -1, 0, &client_key); - if (retval == ENOENT) + if (retval == KRB5_KDB_NO_MATCHING_KEY) break; if (retval) goto cleanup; -- cgit