don't fail reauth if there is any keytab error
authorLuke Howard <lukeh@padl.com>
Fri, 18 Mar 2011 06:09:21 +0000 (17:09 +1100)
committerLuke Howard <lukeh@padl.com>
Fri, 18 Mar 2011 06:12:53 +0000 (17:12 +1100)
util_reauth.c

index 22f089f..72c789f 100644 (file)
@@ -217,11 +217,10 @@ gssEapMakeReauthCreds(OM_uint32 *minor,
     GSSEAP_KRB_INIT(&krbContext);
 
     code = getAcceptorKey(krbContext, ctx, cred, &server, &acceptorKey);
-    if (code == KRB5_KT_NOTFOUND) {
+    if (code != 0) {
         *minor = code;
         return GSS_S_UNAVAILABLE;
-    } else if (code != 0)
-        goto cleanup;
+    }
 
     /*
      * Generate a random session key to place in the ticket and