When checking for master in tthe list of valid encryption types, do not
authorEzra Peisach <epeisach@mit.edu>
Sun, 10 Sep 1995 14:54:30 +0000 (14:54 +0000)
committerEzra Peisach <epeisach@mit.edu>
Sun, 10 Sep 1995 14:54:30 +0000 (14:54 +0000)
stop after checking the first one.

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

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

index 4bf0779ecfb86c0a50604f54af6a97fb203e5915..ad79c4678117759dba16f7d7baabb037285f16bf 100644 (file)
@@ -1,3 +1,8 @@
+Sun Sep 10 10:51:29 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * main.c (init_realm): When checking for master key in valid
+               enctypes, do not stop after checking only the first type.
+
 Wed Sep 06 14:20:57 1995   Chris Provenzano (proven@mit.edu)
 
         * do_as_req.c, do_tgs_req.c, kdc_util.c, kerberos_v4.c, main.c : 
index 54bf69c3b51be156423f60ff5fd0b0b4d9a3f61c..c151d20741499be75ae8457148a2166900497198 100644 (file)
@@ -570,7 +570,7 @@ 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,
+                   if (!(kret = krb5_dbe_find_enctype(rdp->realm_context,
                                                      &db_entry,
                                                      kslist[i].ks_enctype,
                                                      -1,