aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Kourt <tim.a.kourt@linux.intel.com>2020-01-31 14:25:17 -0800
committerDenis Kenzior <denkenz@gmail.com>2020-02-06 15:18:04 -0600
commit49607880fc1b016f35315d7e19d16cf30d1a161c (patch)
treed28bf8ab017920460449ae70245ff298a393ee77
parentbdf328320d895191b4ba8e9779f8ad553fbcbb12 (diff)
downloadiwd-49607880fc1b016f35315d7e19d16cf30d1a161c.tar.gz
peap: Fail auth. if invalid compound MAC is received
Since the interoperability with the Windows server has been achieved, witch back to failing authentication if invalid compound MAC is received.
-rw-r--r--src/eap-peap.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/eap-peap.c b/src/eap-peap.c
index a8a58a927..c17e5b923 100644
--- a/src/eap-peap.c
+++ b/src/eap-peap.c
@@ -244,11 +244,7 @@ static int eap_extensions_handle_cryptobinding_tlv(struct eap_state *eap,
cryptobinding_compound_mac_len)) {
l_error("PEAP: Generated compound MAC and server compound MAC "
"don't match.");
- /*
- * Ignore the Crypto-Binding TLV in the case of unmatched
- * compound MACs.
- */
- return 0;
+ return -EIO;
}
/* Build response Crypto-Binding TLV */