aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_peer/eap_tnc.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-12-24 17:09:21 (GMT)
committerJouni Malinen <j@w1.fi>2015-12-24 17:16:15 (GMT)
commitd39f796f4364602b2eecfd3dae52fd33c31839f8 (patch)
tree134798c1f200fe9d3bc0bb94b602e68bf5310371 /src/eap_peer/eap_tnc.c
parent662512e027db30b0b7a2dd4865e964d1f8812f91 (diff)
downloadhostap-d39f796f4364602b2eecfd3dae52fd33c31839f8.zip
hostap-d39f796f4364602b2eecfd3dae52fd33c31839f8.tar.gz
hostap-d39f796f4364602b2eecfd3dae52fd33c31839f8.tar.bz2
EAP-TNC peer: Remove dead code related to fragmentation
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>
Diffstat (limited to 'src/eap_peer/eap_tnc.c')
-rw-r--r--src/eap_peer/eap_tnc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/eap_peer/eap_tnc.c b/src/eap_peer/eap_tnc.c
index 4541b23..e4294bb 100644
--- a/src/eap_peer/eap_tnc.c
+++ b/src/eap_peer/eap_tnc.c
@@ -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));