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. https://github.com/krb5/krb5/commit/c395ff699651ce5ea1ef2fd106fc191937ac7e31 Commit By: ghudson Revision: 22278 Changed Files: U trunk/src/lib/krb5/keytab/kt_file.c