From 6cf27094e9209250dbd45f8b042530c3b23f0a42 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 13 Sep 2023 22:57:47 +0200 Subject: [PATCH] hostapd: add missing return statement Avoids crash due to uninitialized stack/register garbage Signed-off-by: Felix Fietkau --- package/network/services/hostapd/src/src/ap/ucode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/network/services/hostapd/src/src/ap/ucode.c b/package/network/services/hostapd/src/src/ap/ucode.c index 3dc122b7c275..ba081d87c2dd 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 * -- 2.30.2