From dca7f60026e64d2c463f1a679eca9d87d533ab15 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 15 Sep 1995 05:50:03 +0000 Subject: [PATCH] Stop after finding the first TGS key which matches an entry in the key/salt list. (Typo; added missing '!') git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6790 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/ChangeLog | 6 ++++++ src/kdc/main.c | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index ad79c4678..f8d32bfee 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,9 @@ +Fri Sep 15 01:33:40 1995 Theodore Y. Ts'o + + * main.c (init_realm): Stop after finding the first TGS key which + matches an entry in the key/salt list. (Typo; added + missing '!') + Sun Sep 10 10:51:29 1995 Ezra Peisach * main.c (init_realm): When checking for master key in valid diff --git a/src/kdc/main.c b/src/kdc/main.c index c151d2074..c31632cbf 100644 --- a/src/kdc/main.c +++ b/src/kdc/main.c @@ -639,12 +639,12 @@ init_realm(progname, rdp, realm, def_dbname, def_mpname, */ kdata = (krb5_key_data *) NULL; for (i=0; irealm_context, - &db_entry, - kslist[i].ks_enctype, - -1, - -1, - &kdata))) + if (!(kret = krb5_dbe_find_enctype(rdp->realm_context, + &db_entry, + kslist[i].ks_enctype, + -1, + -1, + &kdata))) break; } if (!kdata) { -- 2.26.2