diff options
author | Ezra Peisach <epeisach@mit.edu> | 1996-02-15 20:07:29 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 1996-02-15 20:07:29 +0000 |
commit | c830fd02123a825537e163c84bd85f72cb8c8bf7 (patch) | |
tree | bdb38a3882490682ee3c8d19cf4fe7500932680a /src/lib/krb5/ccache/file | |
parent | e8a90994759c7cbe41deac6e6abfe7b61b6d6a93 (diff) | |
download | krb5-c830fd02123a825537e163c84bd85f72cb8c8bf7.tar.gz krb5-c830fd02123a825537e163c84bd85f72cb8c8bf7.tar.xz krb5-c830fd02123a825537e163c84bd85f72cb8c8bf7.zip |
If version is not FVNO_4, do not seek forwar a random stack value.
Also check resturn status of lseek.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7481 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/ccache/file')
-rw-r--r-- | src/lib/krb5/ccache/file/ChangeLog | 8 | ||||
-rw-r--r-- | src/lib/krb5/ccache/file/fcc_skip.c | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/krb5/ccache/file/ChangeLog b/src/lib/krb5/ccache/file/ChangeLog index 2628c31e76..af8e13c20c 100644 --- a/src/lib/krb5/ccache/file/ChangeLog +++ b/src/lib/krb5/ccache/file/ChangeLog @@ -1,7 +1,13 @@ +Thu Feb 15 14:55:56 1996 Ezra Peisach <epeisach@kangaroo.mit.edu> + + * fcc_skip.c (krb5_fcc_skip_header): If version is not FVNO_4, do not + seek forward a random stack value. + Thu Feb 1 15:45:23 1996 Sam Hartman <hartmans@tertius.mit.edu> * fcc_retrv.c (ktype_reasonable): removed. - (krb5_fcc_retrieve): Accept any enctype unless specific enctype is being matched. + (krb5_fcc_retrieve): Accept any enctype unless specific enctype is + being matched. Wed Jan 24 21:36:34 1996 Sam Hartman <hartmans@tertius.mit.edu> diff --git a/src/lib/krb5/ccache/file/fcc_skip.c b/src/lib/krb5/ccache/file/fcc_skip.c index c54cfe3891..2f51aeee50 100644 --- a/src/lib/krb5/ccache/file/fcc_skip.c +++ b/src/lib/krb5/ccache/file/fcc_skip.c @@ -41,8 +41,9 @@ krb5_fcc_skip_header(context, id) if (data->version == KRB5_FCC_FVNO_4) { kret = krb5_fcc_read_ui_2(context, id, &fcc_flen); if (kret) return kret; + if(lseek(data->fd, fcc_flen, SEEK_CUR) < 0) + return errno; } - lseek(data->fd, fcc_flen, SEEK_CUR); return KRB5_OK; } |