r19736@cathode-dark-space: raeburn | 2007-07-27 00:38:46 -0400
ticket: 5471
Check for null file handle in get_next.
Patch from Luke Howard.
ticket: 5471
version_fixed: 1.6.3
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@19907
dc483132-0cff-0310-8789-
dd5450dbe970
kerror = KTLOCK(id);
if (kerror)
return kerror;
+ if (KTFILEP(id) == NULL) {
+ KTUNLOCK(id);
+ return KRB5_KT_IOERR;
+ }
if (fseek(KTFILEP(id), *fileoff, 0) == -1) {
KTUNLOCK(id);
return KRB5_KT_END;