aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libcharon/plugins/eap_ttls/eap_ttls_peer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libcharon/plugins/eap_ttls/eap_ttls_peer.c b/src/libcharon/plugins/eap_ttls/eap_ttls_peer.c
index ace412de7..d84211540 100644
--- a/src/libcharon/plugins/eap_ttls/eap_ttls_peer.c
+++ b/src/libcharon/plugins/eap_ttls/eap_ttls_peer.c
@@ -147,10 +147,11 @@ METHOD(tls_application_t, process, status_t,
switch (status)
{
case SUCCESS:
- this->method->destroy(this->method);
- this->method = NULL;
/* fall through to NEED_MORE since response must be sent */
case NEED_MORE:
+ /* TODO support multiple EAP request/response exchanges */
+ this->method->destroy(this->method);
+ this->method = NULL;
return NEED_MORE;
case FAILED:
default: