From: Ezra Peisach Date: Thu, 15 Feb 1996 20:07:29 +0000 (+0000) Subject: If version is not FVNO_4, do not seek forwar a random stack value. X-Git-Tag: krb5-1.0-beta6~507 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c830fd02123a825537e163c84bd85f72cb8c8bf7;p=krb5.git 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 --- diff --git a/src/lib/krb5/ccache/file/ChangeLog b/src/lib/krb5/ccache/file/ChangeLog index 2628c31e7..af8e13c20 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 + + * 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 * 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 diff --git a/src/lib/krb5/ccache/file/fcc_skip.c b/src/lib/krb5/ccache/file/fcc_skip.c index c54cfe389..2f51aeee5 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; }