+Thu May 9 03:05:51 1996 Richard Basch <basch@lehman.com>
+
+ * ktf_g_ent.c (krb5_ktfile_get_entry): don't skip over keytab
+ entries with kvno=0.
+
Tue Mar 19 22:28:43 1996 Richard Basch <basch@lehman.com>
* ktf_g_ent.c (krb5_ktfile_get_entry): all des enctypes are equivalent
(entry_type == enctype))&&
krb5_principal_compare(context, principal, new_entry.principal)) {
if (kvno == IGNORE_VNO) {
- if (cur_entry.vno < new_entry.vno) {
+ if (! cur_entry.principal ||
+ (cur_entry.vno < new_entry.vno))
+ {
krb5_kt_free_entry(context, &cur_entry);
- cur_entry = new_entry;
+ cur_entry = new_entry;
}
} else {
if (new_entry.vno == kvno) {
-krb5_kt_free_entry(context, &cur_entry);
-
- cur_entry = new_entry;
- break;
+ krb5_kt_free_entry(context, &cur_entry);
+ cur_entry = new_entry;
+ break;
}
}
} else {