Fixed EAP-IKEv2 server fragment processing

Need to clear the state back to MSG after having processed all incoming
fragments. Without this, the server got stuck in sending the fragment ACK
even after having received the full message.
This commit is contained in:
Jouni Malinen 2008-05-26 16:51:40 +03:00
parent ef626b4d50
commit ab17e3f2b7

View file

@ -416,6 +416,9 @@ static void eap_ikev2_process(struct eap_sm *sm, void *priv,
else else
eap_ikev2_state(data, FRAG_ACK); eap_ikev2_state(data, FRAG_ACK);
return; return;
} else if (data->state == FRAG_ACK) {
wpa_printf(MSG_DEBUG, "EAP-TNC: All fragments received");
data->state = MSG;
} }
if (data->in_buf == NULL) { if (data->in_buf == NULL) {