From: Felix Fietkau Date: Sat, 28 Jun 2025 19:20:44 +0000 (+0200) Subject: hostapd: fix potential double free in ubus code X-Git-Tag: v25.12.0-rc1~2076 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e1d4afa86ea907f360ff837687969be1e780fd6;p=thirdparty%2Fopenwrt.git hostapd: fix potential double free in ubus code Ensure that the object name is never freed twice Signed-off-by: Felix Fietkau --- 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