svn rev #24461: branches/krb5-1-8/src/lib/kdb/
tlyu@MIT.EDU
tlyu at MIT.EDU
Fri Oct 15 17:42:29 EDT 2010
http://src.mit.edu/fisheye/changelog/krb5/?cs=24461
Commit By: tlyu
Log Message:
ticket: 6790
target_version: 1.8.4
version_fixed: 1.8.4
status: resolved
pull up r24370 from trunk
------------------------------------------------------------------------
r24370 | ghudson | 2010-09-28 15:09:11 -0400 (Tue, 28 Sep 2010) | 9 lines
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 branches/krb5-1-8/src/lib/kdb/kdb_default.c
Modified: branches/krb5-1-8/src/lib/kdb/kdb_default.c
===================================================================
--- branches/krb5-1-8/src/lib/kdb/kdb_default.c 2010-10-15 21:42:25 UTC (rev 24460)
+++ branches/krb5-1-8/src/lib/kdb/kdb_default.c 2010-10-15 21:42:29 UTC (rev 24461)
@@ -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