mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 10:18:21 -05:00
IBSS: Check ibss_rsn init before starting new IBSS authentication
Sanity check added to avoid segmentation fault which occurs, when issuing ibss_rsn ctrl iface cmd and IBSS was not initialized previously via IBSS network selection. Signed-off-by: Eduardo Abinader <eduardo.abinader@openbossa.org>
This commit is contained in:
parent
74d912f134
commit
01e87ef64f
@ -571,6 +571,9 @@ int ibss_rsn_start(struct ibss_rsn *ibss_rsn, const u8 *addr)
|
||||
struct ibss_rsn_peer *peer;
|
||||
int res;
|
||||
|
||||
if (!ibss_rsn)
|
||||
return -1;
|
||||
|
||||
/* if the peer already exists, exit immediately */
|
||||
peer = ibss_rsn_get_peer(ibss_rsn, addr);
|
||||
if (peer)
|
||||
|
Loading…
Reference in New Issue
Block a user