]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EAP-TNC peer: Remove dead code related to fragmentation
authorJouni Malinen <j@w1.fi>
Thu, 24 Dec 2015 17:09:21 +0000 (19:09 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 24 Dec 2015 17:16:15 +0000 (19:16 +0200)
The data->state == WAIT_FRAG_ACK case is already handling all cases
where data->out_buf could be non-NULL, so this additional check after
the WAIT_FRAG_ACK steps cannot be reached. Remove the duplicated dead
code.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/eap_peer/eap_tnc.c

index 4541b23654e02e66de861369f3d3d8d0f527ee00..e4294bb20314a6a42c17432bbb170aa561031ad7 100644 (file)
@@ -350,11 +350,6 @@ static struct wpabuf * eap_tnc_process(struct eap_sm *sm, void *priv,
        ret->decision = DECISION_UNCOND_SUCC;
        ret->allowNotifications = TRUE;
 
-       if (data->out_buf) {
-               data->state = PROC_MSG;
-               return eap_tnc_build_msg(data, ret, id);
-       }
-
        if (tncs_done) {
                resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_TNC, 1,
                                     EAP_CODE_RESPONSE, eap_get_id(reqData));