From: Andreas Steffen Date: Mon, 30 Aug 2010 13:35:13 +0000 (+0200) Subject: for the time being assume a single request/response exchange for a given EAP method X-Git-Tag: 4.5.0~381 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=577893612fa7d5a9956bf9fbe60d1de77092810e;p=thirdparty%2Fstrongswan.git for the time being assume a single request/response exchange for a given EAP method --- diff --git a/src/libcharon/plugins/eap_ttls/eap_ttls_peer.c b/src/libcharon/plugins/eap_ttls/eap_ttls_peer.c index ace412de77..d842115400 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: