Set the reply to CHALLENGE if we're not done
authorAlan T. DeKok <aland@freeradius.org>
Wed, 4 Jun 2014 12:14:55 +0000 (08:14 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 4 Jun 2014 12:14:55 +0000 (08:14 -0400)
src/modules/rlm_eap/types/rlm_eap_peap/peap.c
src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c

index 96ba682..2db8f9a 100644 (file)
@@ -659,6 +659,7 @@ static int CC_HINT(nonnull) eappeap_postproxy(eap_handler_t *handler, void *data
        case RLM_MODULE_HANDLED:
                RDEBUG2("Reply was handled");
                eaptls_request(handler->eap_ds, tls_session);
+               request->proxy_reply->code = PW_CODE_ACCESS_CHALLENGE;
                return 1;
 
        case RLM_MODULE_OK:
index 1620e44..468b175 100644 (file)
@@ -886,6 +886,7 @@ static int CC_HINT(nonnull) eapttls_postproxy(eap_handler_t *handler, void *data
        case RLM_MODULE_HANDLED:
                RDEBUG("Reply was handled");
                eaptls_request(handler->eap_ds, tls_session);
+               request->proxy_reply->code = PW_CODE_ACCESS_CHALLENGE;
                return 1;
 
        case RLM_MODULE_OK: