From: Theodore Tso Date: Tue, 11 Jul 1995 17:06:21 +0000 (+0000) Subject: If the key version number is specified, check to make sure that the X-Git-Tag: krb5-1.0-beta6~1541 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bec7406d6738c0b760d47968ac6029351dd5acb4;p=krb5.git If the key version number is specified, check to make sure that the entry has the correct key version number. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6276 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/keytab/file/ChangeLog b/src/lib/krb5/keytab/file/ChangeLog index 8de097a14..16ec9bf5b 100644 --- a/src/lib/krb5/keytab/file/ChangeLog +++ b/src/lib/krb5/keytab/file/ChangeLog @@ -1,3 +1,9 @@ +Wed Jun 28 12:05:34 1995 + + * ktf_g_ent.c (krb5_ktfile_get_entry): If the key version number + is specified, check to make sure that the entry has the + correct key version number. + Fri Jun 9 19:34:23 1995 * configure.in: Remove standardized set of autoconf macros, which diff --git a/src/lib/krb5/keytab/file/ktf_g_ent.c b/src/lib/krb5/keytab/file/ktf_g_ent.c index a296720ce..f05f0bd48 100644 --- a/src/lib/krb5/keytab/file/ktf_g_ent.c +++ b/src/lib/krb5/keytab/file/ktf_g_ent.c @@ -63,8 +63,10 @@ krb5_ktfile_get_entry(context, id, principal, kvno, keytype, entry) cur_entry = new_entry; } } else { - cur_entry = new_entry; - break; + if (new_entry.vno == kvno) { + cur_entry = new_entry; + break; + } } } else { krb5_kt_free_entry(context, &new_entry);