Stop after finding the first TGS key which matches an entry in the
authorTheodore Tso <tytso@mit.edu>
Fri, 15 Sep 1995 05:50:03 +0000 (05:50 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 15 Sep 1995 05:50:03 +0000 (05:50 +0000)
key/salt list.  (Typo; added missing '!')

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6790 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/ChangeLog
src/kdc/main.c

index ad79c4678117759dba16f7d7baabb037285f16bf..f8d32bfee955a9afd9f480296fa74abf9273dabc 100644 (file)
@@ -1,3 +1,9 @@
+Fri Sep 15 01:33:40 1995  Theodore Y. Ts'o  <tytso@dcl>
+
+       * 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  <epeisach@kangaroo.mit.edu>
 
        * main.c (init_realm): When checking for master key in valid
index c151d20741499be75ae8457148a2166900497198..c31632cbf24e77d140c379dd548ed3b78868ae65 100644 (file)
@@ -639,12 +639,12 @@ init_realm(progname, rdp, realm, def_dbname, def_mpname,
                 */
                kdata = (krb5_key_data *) NULL;
                for (i=0; i<nkslist; i++) {
-                   if ((kret = krb5_dbe_find_enctype(rdp->realm_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) {