elric1/heimdal — comment on commit 83056ef81093189f57f57eef7aca563e77bb35cc
File: lib/krb5/replay.c line 222
By nicowilliams:

You are assigning a size_t result to an int. Better have a size_t bytes variable and assign to that. Then make the check "if (bytes != sizeof(ent))" since that's what we wanted to read. We probably don't care whether we got an error or EOF here -both are bad- and return KRB5_RC_IO_UNKNOWN (or a better error if you can find one) and be done.