From: Greg Hudson Date: Fri, 24 Apr 2009 19:49:54 +0000 (+0000) Subject: In krb5_ktfileint_find_slot, don't continue the loop when we find a X-Git-Tag: krb5-1.8-alpha1~528 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c395ff699651ce5ea1ef2fd106fc191937ac7e31;p=krb5.git 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 --- 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; } } }