summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2009-04-24 19:49:54 +0000
committerGreg Hudson <ghudson@mit.edu>2009-04-24 19:49:54 +0000
commitc395ff699651ce5ea1ef2fd106fc191937ac7e31 (patch)
tree360240f50b7cc4a2f67e758afe1310ced0f152b1
parent442ca54391e96c7bcb7d886b28f57300253a4c17 (diff)
downloadkrb5-c395ff699651ce5ea1ef2fd106fc191937ac7e31.tar.gz
krb5-c395ff699651ce5ea1ef2fd106fc191937ac7e31.tar.xz
krb5-c395ff699651ce5ea1ef2fd106fc191937ac7e31.zip
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
-rw-r--r--src/lib/krb5/keytab/kt_file.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}
}