aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Prestwood <prestwoj@gmail.com>2024-02-29 10:12:17 -0800
committerDenis Kenzior <denkenz@gmail.com>2024-02-29 14:37:49 -0600
commitc2ad0006ebac2718adc752c7f4d0dcf15e092599 (patch)
treec0a6372ccdc6243f8c14759f0a9712947d1e87bd
parent5fcfb430b2d75a269a9c3216089d76749ee28856 (diff)
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.
-rw-r--r--src/ap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ap.c b/src/ap.c
index a6f8f306a..b4e7593e5 100644
--- a/src/ap.c
+++ b/src/ap.c
@@ -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;
}
/*