From c395ff699651ce5ea1ef2fd106fc191937ac7e31 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Fri, 24 Apr 2009 19:49:54 +0000 Subject: [PATCH] In krb5_ktfileint_find_slot, don't continue the loop when we find a final zero-length buffer. This is a minimal fix intended to be pulled up to the 1.7 branch; a code cleanup commit will follow. ticket: 6475 status: open tags: pullup target_version: 1.7 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22278 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/keytab/kt_file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/krb5/keytab/kt_file.c b/src/lib/krb5/keytab/kt_file.c index 1d261f8c7..79728cee0 100644 --- a/src/lib/krb5/keytab/kt_file.c +++ b/src/lib/krb5/keytab/kt_file.c @@ -1755,6 +1755,7 @@ krb5_ktfileint_find_slot(krb5_context context, krb5_keytab id, krb5_int32 *size_ if (fseek(KTFILEP(id), zero_point, SEEK_SET)) { return errno; } + found = TRUE; } } } -- 2.26.2