(Such an error will never happen in any reasonable stdio
implementation but it's more correct to check.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21892
dc483132-0cff-0310-8789-
dd5450dbe970
* Make sure we zero any trailing data.
*/
zero_point = ftell(KTFILEP(id));
+ if (zero_point < 0) {
+ return errno;
+ }
while ((size = fread(iobuf, 1, sizeof(iobuf), KTFILEP(id)))) {
if (size != sizeof(iobuf)) {
remainder = size % sizeof(krb5_int32);