don't fail hard if reauth cred generation fails
authorLuke Howard <lukeh@padl.com>
Tue, 8 Mar 2011 13:04:28 +0000 (00:04 +1100)
committerLuke Howard <lukeh@padl.com>
Tue, 8 Mar 2011 13:38:49 +0000 (00:38 +1100)
accept_sec_context.c

index 5b3d53f..47bb64f 100644 (file)
@@ -617,8 +617,10 @@ eapGssSmAcceptReauthCreds(OM_uint32 *minor,
      * fabricate a ticket from the initiator to ourselves.
      */
     major = gssEapMakeReauthCreds(minor, ctx, cred, outputToken);
-    if (GSS_ERROR(major))
-        return major;
+    if (major == GSS_S_UNAVAILABLE)
+        major = GSS_S_COMPLETE;
+    if (major == GSS_S_COMPLETE)
+        major = GSS_S_CONTINUE_NEEDED;
 
     return major;
 }