]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
authdata type may be negative
authorLuke Howard <lukeh@padl.com>
Mon, 31 Aug 2009 23:38:09 +0000 (23:38 +0000)
committerLuke Howard <lukeh@padl.com>
Mon, 31 Aug 2009 23:38:09 +0000 (23:38 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/authdata@22693 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ccache/cc_file.c

index bd93fa431574c7adb94510d73c2e5812752bcb86..32564a04ebd69e30f06ee8bbf8bd6620b4a16d19 100644 (file)
@@ -859,14 +859,14 @@ krb5_fcc_read_authdatum(krb5_context context, krb5_ccache id, krb5_authdata *a)
 {
     krb5_error_code kret;
     krb5_int32 int32;
-    krb5_ui_2 ui2;
+    krb5_int16 ui2; /* negative authorization data types are allowed */
     
     k5_cc_mutex_assert_locked(context, &((krb5_fcc_data *) id->data)->lock);
 
     a->magic = KV5M_AUTHDATA;
     a->contents = NULL;
 
-    kret = krb5_fcc_read_ui_2(context, id, &ui2);
+    kret = krb5_fcc_read_ui_2(context, id, (krb5_ui_2 *)&ui2);
     CHECK(kret);
     a->ad_type = (krb5_authdatatype)ui2;
     kret = krb5_fcc_read_int32(context, id, &int32);