* Fix scc_read.c (krb5_scc_read_authdatum()) krb5_authdatatype
authorChris Provenzano <proven@mit.edu>
Fri, 27 Jan 1995 06:56:33 +0000 (06:56 +0000)
committerChris Provenzano <proven@mit.edu>
Fri, 27 Jan 1995 06:56:33 +0000 (06:56 +0000)
                is of type unsigned int and therefore shouldn't be the
                argument to krb5_scc_read_ui_2().

Fixes bug reported by Ezra (discuss message 1053)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4860 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ccache/stdio/ChangeLog
src/lib/krb5/ccache/stdio/scc_read.c

index 98f59a2be2750e80e2e2aaa80984d4d11d480fff..c2dc9945fec2dc7b327c38bf1ff621d1449d73a5 100644 (file)
@@ -1,3 +1,9 @@
+Fri Jan 27 00:49:36 1995  Chris Provenzano (proven@mit.edu)
+
+       * Fix scc_read.c (krb5_scc_read_authdatum()) krb5_authdatatype
+               is of type unsigned int and therefore shouldn't be the
+               argument to krb5_scc_read_ui_2().
+
 Fri Jan 13 15:23:47 1995  Chris Provenzano (proven@mit.edu)
 
     * Added krb5_context to all krb5_routines 
index 29dbdb96697d8c9ed80cb56e3b56a5354b354d18..ea3f9ed2f23c3a678b1b2a7871bb87d26d54a7a3 100644 (file)
@@ -441,13 +441,15 @@ krb5_scc_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_scc_read_ui_2(context, id, &a->ad_type);
+    kret = krb5_scc_read_ui_2(context, id, &ui2);
     CHECK(kret);
+    a->ad_type = (krb5_authdatatype)ui2;
     kret = krb5_scc_read_int32(context, id, &int32);
     CHECK(kret);
     a->length = int32;