for the time being assume a single request/response exchange for a given EAP method

This commit is contained in:
Andreas Steffen 2010-08-30 15:35:13 +02:00
parent 2402dee177
commit 577893612f
1 changed files with 3 additions and 2 deletions

View File

@ -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: