From: Felix Fietkau Date: Wed, 13 Sep 2023 20:57:47 +0000 (+0200) Subject: hostapd: add missing return statement X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6cf27094e9209250dbd45f8b042530c3b23f0a42;p=openwrt%2Fstaging%2Fthess.git hostapd: add missing return statement Avoids crash due to uninitialized stack/register garbage Signed-off-by: Felix Fietkau --- diff --git a/package/network/services/hostapd/src/src/ap/ucode.c b/package/network/services/hostapd/src/src/ap/ucode.c index 3dc122b7c2..ba081d87c2 100644 --- a/package/network/services/hostapd/src/src/ap/ucode.c +++ b/package/network/services/hostapd/src/src/ap/ucode.c @@ -396,6 +396,8 @@ uc_hostapd_iface_stop(uc_vm_t *vm, size_t nargs) hostapd_drv_stop_ap(hapd); hapd->beacon_set_done = 0; } + + return NULL; } static uc_value_t *