From: Theodore Tso Date: Fri, 15 Sep 1995 05:50:03 +0000 (+0000) Subject: Stop after finding the first TGS key which matches an entry in the X-Git-Tag: krb5-1.0-beta6~1073 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dca7f60026e64d2c463f1a679eca9d87d533ab15;p=krb5.git 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 --- 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) {