From 577893612fa7d5a9956bf9fbe60d1de77092810e Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Mon, 30 Aug 2010 15:35:13 +0200 Subject: [PATCH] for the time being assume a single request/response exchange for a given EAP method --- src/libcharon/plugins/eap_ttls/eap_ttls_peer.c | 5 +++-- 1 file 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: