svn rev #24370: trunk/src/lib/kdb/

ghudson@MIT.EDU ghudson at MIT.EDU
Tue Sep 28 15:09:11 EDT 2010


http://src.mit.edu/fisheye/changelog/krb5/?cs=24370
Commit By: ghudson
Log Message:
ticket: 6790
target_version: 1.8.4
tags: pullup

Make krb5_dbe_def_search_enctype skip key data entries with invalid
enctypes instead of erroring out on them.  We had this behavior prior
to 1.8 (more by accident than by design), but it changed as a
side-effect of r23599.



Changed Files:
U   trunk/src/lib/kdb/kdb_default.c
Modified: trunk/src/lib/kdb/kdb_default.c
===================================================================
--- trunk/src/lib/kdb/kdb_default.c	2010-09-28 16:00:08 UTC (rev 24369)
+++ trunk/src/lib/kdb/kdb_default.c	2010-09-28 19:09:11 UTC (rev 24370)
@@ -91,12 +91,10 @@
 
         /* Match this entry against the arguments. */
         if (ktype != -1) {
-            if ((ret = krb5_c_enctype_compare(kcontext, (krb5_enctype) ktype,
-                                              dbentp->key_data[i].key_data_type[0],
-                                              &similar)))
-
-                return(ret);
-            if (!similar)
+            ret = krb5_c_enctype_compare(kcontext, (krb5_enctype) ktype,
+                                         dbentp->key_data[i].key_data_type[0],
+                                         &similar);
+            if (ret != 0 || !similar)
                 continue;
         }
         if (stype >= 0 && db_stype != stype)




More information about the cvs-krb5 mailing list