mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
P2P: Fix Device ID matching for Probe Request frames
The misplaced parenthesis caused Device ID matching to check only the first octet of the P2P Device Address, i.e., we could have replied to Probe Request frames that was searching for another device if any of the last five octets of the address were different. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com> intended-for: hostap-1
This commit is contained in:
parent
1f0cc27eb9
commit
1c7447d08b
@ -1911,7 +1911,7 @@ p2p_reply_probe(struct p2p_data *p2p, const u8 *addr, const u8 *dst,
|
||||
}
|
||||
|
||||
if (msg.device_id &&
|
||||
os_memcmp(msg.device_id, p2p->cfg->dev_addr, ETH_ALEN != 0)) {
|
||||
os_memcmp(msg.device_id, p2p->cfg->dev_addr, ETH_ALEN) != 0) {
|
||||
/* Device ID did not match */
|
||||
p2p_parse_free(&msg);
|
||||
return P2P_PREQ_NOT_PROCESSED;
|
||||
|
Loading…
Reference in New Issue
Block a user