From 6e1d4afa86ea907f360ff837687969be1e780fd6 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 28 Jun 2025 21:20:44 +0200 Subject: [PATCH] hostapd: fix potential double free in ubus code Ensure that the object name is never freed twice Signed-off-by: Felix Fietkau --- package/network/services/hostapd/src/src/ap/ubus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/package/network/services/hostapd/src/src/ap/ubus.c b/package/network/services/hostapd/src/src/ap/ubus.c index fab5f31282a..a1420619a3c 100644 --- a/package/network/services/hostapd/src/src/ap/ubus.c +++ b/package/network/services/hostapd/src/src/ap/ubus.c @@ -1788,6 +1788,7 @@ void hostapd_ubus_free_bss(struct hostapd_data *hapd) } free(name); + obj->name = NULL; } static void