]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
hostapd: fix potential double free in ubus code
authorFelix Fietkau <nbd@nbd.name>
Sat, 28 Jun 2025 19:20:44 +0000 (21:20 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 5 Jul 2025 12:41:00 +0000 (14:41 +0200)
Ensure that the object name is never freed twice

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

index fab5f31282ae478f4b786f3a4652f860e6905753..a1420619a3c19a00783fece67a614a0f4a7d1bcc 100644 (file)
@@ -1788,6 +1788,7 @@ void hostapd_ubus_free_bss(struct hostapd_data *hapd)
        }
 
        free(name);
+       obj->name = NULL;
 }
 
 static void