aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/eap.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2005-06-27 03:00:53 (GMT)
committerJouni Malinen <j@w1.fi>2005-06-27 03:00:53 (GMT)
commit441dece31348bb4a0ae0969851b3b74c40d2a4a7 (patch)
tree286d16f9f3e6a4304570c75b96b9e7bfcc2c8933 /wpa_supplicant/eap.c
parent2503665b16bb3f90f5631636ce272d110a7fcbdc (diff)
downloadhostap-history-b6b5a04dc0ab3e208f0b5981fe6ebe8bc8d8496b.zip
hostap-history-b6b5a04dc0ab3e208f0b5981fe6ebe8bc8d8496b.tar.gz
hostap-history-b6b5a04dc0ab3e208f0b5981fe6ebe8bc8d8496b.tar.bz2
Do not print out debug messages about duplicate EAP Id if the EAPhostap_0_4_3
packet is something else than Request. EAP-Success and EAP-Failure are supposed to have the same Id, so printing out debugging about duplicates for these is confusing at best.
Diffstat (limited to 'wpa_supplicant/eap.c')
-rw-r--r--wpa_supplicant/eap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/eap.c b/wpa_supplicant/eap.c
index 583e6d6..1f46eb6 100644
--- a/wpa_supplicant/eap.c
+++ b/wpa_supplicant/eap.c
@@ -574,7 +574,7 @@ SM_STEP(EAP)
SM_ENTER(EAP, SUCCESS);
break;
case EAP_RECEIVED:
- duplicate = sm->reqId == sm->lastId;
+ duplicate = (sm->reqId == sm->lastId) && sm->rxReq;
if (sm->workaround && duplicate &&
memcmp(sm->req_md5, sm->last_md5, 16) != 0) {
/* draft-ietf-eap-statemachine-05.txt uses