diff options
| author | Chris Provenzano <proven@mit.edu> | 1995-01-27 06:56:14 +0000 |
|---|---|---|
| committer | Chris Provenzano <proven@mit.edu> | 1995-01-27 06:56:14 +0000 |
| commit | bf82a991168327e48f8a7ff08cb89227cfe283db (patch) | |
| tree | 151022910f3dd09b449295b34c69a2bf70a7e863 /src | |
| parent | 44dc2d1cac752f187611de44dd5eedde57ff80b0 (diff) | |
| download | krb5-bf82a991168327e48f8a7ff08cb89227cfe283db.tar.gz krb5-bf82a991168327e48f8a7ff08cb89227cfe283db.tar.xz krb5-bf82a991168327e48f8a7ff08cb89227cfe283db.zip | |
* Fix fcc_read.c (krb5_fcc_read_authdatum()) krb5_authdatatype
is of type unsigned int and therefore shouldn't be the
argument to krb5_fcc_read_ui_2().
Fixes bug reported by Ezra (discuss message 1053)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4859 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/krb5/ccache/file/ChangeLog | 6 | ||||
| -rw-r--r-- | src/lib/krb5/ccache/file/fcc_read.c | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/krb5/ccache/file/ChangeLog b/src/lib/krb5/ccache/file/ChangeLog index e105df37d..f092634c9 100644 --- a/src/lib/krb5/ccache/file/ChangeLog +++ b/src/lib/krb5/ccache/file/ChangeLog @@ -1,3 +1,9 @@ +Fri Jan 27 00:49:36 1995 Chris Provenzano (proven@mit.edu) + + * Fix fcc_read.c (krb5_fcc_read_authdatum()) krb5_authdatatype + is of type unsigned int and therefore shouldn't be the + argument to krb5_fcc_read_ui_2(). + Fri Jan 13 15:23:47 1995 Chris Provenzano (proven@mit.edu) * Added krb5_context to all krb5_routines diff --git a/src/lib/krb5/ccache/file/fcc_read.c b/src/lib/krb5/ccache/file/fcc_read.c index 801cb7501..0ff983a30 100644 --- a/src/lib/krb5/ccache/file/fcc_read.c +++ b/src/lib/krb5/ccache/file/fcc_read.c @@ -442,13 +442,15 @@ krb5_fcc_read_authdatum(context, id, a) { krb5_error_code kret; krb5_int32 int32; + krb5_ui_2 ui2; int ret; a->magic = KV5M_AUTHDATA; a->contents = NULL; - kret = krb5_fcc_read_ui_2(context, id, &a->ad_type); + kret = krb5_fcc_read_ui_2(context, id, &ui2); CHECK(kret); + a->ad_type = (krb5_authdatatype)ui2; kret = krb5_fcc_read_int32(context, id, &int32); CHECK(kret); a->length = int32; |
