commit 8d224624fc99f61d6d23bc98d2073e4e7a95b708
parent ae0fa6207e0d9438bb4a69e82ea8c18f52aa44f8
Author: James Prestwood <prestwoj@gmail.com>
Date: Tue, 27 Sep 2022 16:15:49 -0700
ft: fix ft_associate to verify if authentication succeeded
ft_associate was only checking the presence of the info structure,
not if it actually succeeded to authenticate.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ft.c b/src/ft.c
@@ -1055,7 +1055,7 @@ int ft_associate(uint32_t ifindex, const uint8_t *addr)
* a different BSS.
*/
info = ft_info_find(ifindex, addr);
- if (!info)
+ if (!info || !info->parsed)
return -ENOENT;
ft_prepare_handshake(info, hs);