Eap state machine may not change state; this is OK
authorSam Hartman <hartmans@painless-security.com>
Fri, 9 Sep 2011 18:18:59 +0000 (14:18 -0400)
committerSam Hartman <hartmans@painless-security.com>
Fri, 9 Sep 2011 18:18:59 +0000 (14:18 -0400)
mech_eap/init_sec_context.c

index d6e8882..af76a4b 100644 (file)
@@ -647,7 +647,6 @@ eapGssSmInitAuthenticate(OM_uint32 *minor,
 {
     OM_uint32 major;
     OM_uint32 tmpMinor;
-    int code;
     struct wpabuf *resp = NULL;
 
     *minor = 0;
@@ -668,12 +667,7 @@ eapGssSmInitAuthenticate(OM_uint32 *minor,
 
     major = GSS_S_CONTINUE_NEEDED;
 
-    code = eap_peer_sm_step(ctx->initiatorCtx.eap);
-    if (code != 0) {
-      major = GSS_S_FAILURE;
-      *minor = GSSEAP_PEER_SM_STEP_FAILURE;
-      goto cleanup;
-    }
+    (void) eap_peer_sm_step(ctx->initiatorCtx.eap);
     if (ctx->flags & CTX_FLAG_EAP_RESP) {
         ctx->flags &= ~(CTX_FLAG_EAP_RESP);