hostapd: add missing return statement
authorFelix Fietkau <nbd@nbd.name>
Wed, 13 Sep 2023 20:57:47 +0000 (22:57 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 13 Sep 2023 20:57:49 +0000 (22:57 +0200)
Avoids crash due to uninitialized stack/register garbage

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

index 3dc122b7c2758024b76fd30445312b55c7ff60ab..ba081d87c2dd19c7ec054bc6da94ccd6b7c388cd 100644 (file)
@@ -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 *