some nits
authorLuke Howard <lukeh@padl.com>
Wed, 22 Sep 2010 22:12:23 +0000 (00:12 +0200)
committerLuke Howard <lukeh@padl.com>
Wed, 22 Sep 2010 22:12:23 +0000 (00:12 +0200)
mech_eap/util_reauth.c
mech_eap/util_token.c

index c442038..1d7f2d4 100644 (file)
@@ -264,6 +264,10 @@ gssEapStoreReauthCreds(OM_uint32 *minor,
     if (code != 0)
         goto cleanup;
 
+    code = krb5_cc_initialize(krbContext, cred->krbCredCache, creds[0]->client);
+    if (code != 0)
+        goto cleanup;
+
     code = krb5_cc_store_cred(krbContext, cred->krbCredCache, creds[0]);
     if (code != 0)
         goto cleanup;
index 7ddc582..b985215 100644 (file)
@@ -254,10 +254,10 @@ verifyTokenHeader(OM_uint32 *minor,
         if ((toksize -= 2) < 0)
             return GSS_S_DEFECTIVE_TOKEN;
 
-        *ret_tok_type = load_uint16_be(*buf);
+        *ret_tok_type = load_uint16_be(buf);
         if (tok_type != *ret_tok_type)
             return GSS_S_DEFECTIVE_TOKEN;
-        *buf += 2;
+        buf += 2;
     }
     *buf_in = buf;
     *body_size = toksize;