Encode EAP-Naks in expanded format if we got an expanded type request

Since methods defined by the IETF (vendor ID 0) could also be encoded in
expanded type format the previous check was insufficient.
This commit is contained in:
Tobias Brunner
2012-08-31 11:40:27 +02:00
parent 78e8dca94f
commit cc4eec56f7
5 changed files with 19 additions and 6 deletions
@@ -152,7 +152,7 @@ METHOD(tls_application_t, process, status_t,
{
DBG1(DBG_IKE, "EAP method not supported");
this->out = eap_payload_create_nak(in->get_identifier(in), 0, 0,
received_vendor != 0);
in->is_expanded(in));
in->destroy(in);
return NEED_MORE;
}