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:
James Prestwood 2024-02-29 10:12:17 -08:00 committed by Denis Kenzior
parent 5fcfb430b2
commit c2ad0006eb
1 changed files with 2 additions and 1 deletions

View File

@ -455,7 +455,8 @@ static void ap_del_station(struct sta_state *sta, uint16_t reason,
sta->ip_alloc_lease = NULL;
l_dhcp_server_expire_by_mac(ap->netconfig_dhcp, sta->addr);
ap_event_done(ap, prev);
if (ap_event_done(ap, prev))
return;
}
/*