diff options
| author | Felix Fietkau | 2025-06-28 19:20:44 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2025-07-05 12:41:00 +0000 |
| commit | 6e1d4afa86ea907f360ff837687969be1e780fd6 (patch) | |
| tree | cea936fc1528349b35a3ea9a60272854d5b94dc7 | |
| parent | 14b686247aec2e1b57f78f78b7ce7d8cda005320 (diff) | |
| download | openwrt-6e1d4afa86ea907f360ff837687969be1e780fd6.tar.gz | |
hostapd: fix potential double free in ubus code
Ensure that the object name is never freed twice
Signed-off-by: Felix Fietkau <nbd@nbd.name>
| -rw-r--r-- | package/network/services/hostapd/src/src/ap/ubus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/network/services/hostapd/src/src/ap/ubus.c b/package/network/services/hostapd/src/src/ap/ubus.c index fab5f31282..a1420619a3 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 |