mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-10 14:09:22 +01:00
ap: bail in ap_del_station if AP is going down
Caught by static analysis, if this condition is met the AP is going down so we cannot continue further accessing the ap object.
This commit is contained in:
parent
5fcfb430b2
commit
c2ad0006eb
3
src/ap.c
3
src/ap.c
@ -455,7 +455,8 @@ static void ap_del_station(struct sta_state *sta, uint16_t reason,
|
|||||||
sta->ip_alloc_lease = NULL;
|
sta->ip_alloc_lease = NULL;
|
||||||
l_dhcp_server_expire_by_mac(ap->netconfig_dhcp, sta->addr);
|
l_dhcp_server_expire_by_mac(ap->netconfig_dhcp, sta->addr);
|
||||||
|
|
||||||
ap_event_done(ap, prev);
|
if (ap_event_done(ap, prev))
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user