hostapd: do not modify hapd->started when stopping an AP
authorFelix Fietkau <nbd@nbd.name>
Wed, 13 Sep 2023 15:07:17 +0000 (17:07 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 13 Sep 2023 15:07:21 +0000 (17:07 +0200)
commit7365e8f1bb5eb4c4fc6b8a03e0f7bed2c7b7b523
tree8684e26e71a214ea89e72b7915d8dcc892cec228
parenta463bd8c99a23f8b78e3eaa7842acb9a15ebe90f
hostapd: do not modify hapd->started when stopping an AP

It can cause cleanup to be skipped on wifi restart, which can lead to
use-after-free bugs

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/services/hostapd/src/src/ap/ucode.c