mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
P2P: Fix compilation warning in p2p_add_device()
The address of msg.device_name array is obviously always true, and some compilers even warn about it. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
This commit is contained in:
parent
93b85d4419
commit
bbad185c13
@ -822,8 +822,8 @@ int p2p_add_device(struct p2p_data *p2p, const u8 *addr, int freq,
|
|||||||
}
|
}
|
||||||
dev->info.level = level;
|
dev->info.level = level;
|
||||||
|
|
||||||
dev_name_changed = msg.device_name &&
|
dev_name_changed = os_strncmp(dev->info.device_name, msg.device_name,
|
||||||
os_strcmp(dev->info.device_name, msg.device_name) != 0;
|
WPS_DEV_NAME_MAX_LEN) != 0;
|
||||||
|
|
||||||
p2p_copy_wps_info(p2p, dev, 0, &msg);
|
p2p_copy_wps_info(p2p, dev, 0, &msg);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user