mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-24 23:37:42 +04:00
hostapd_ubus_add_bss() counted a reference to the ubus context whether ubus_add_object() succeeded or not, and hostapd_ubus_free_bss() drops one only for an object with an id. Every BSS whose object could not be added, such as each further link of an AP MLD, which all ask for the same name, kept the context referenced after it was freed. Count the reference only where the object was added. Signed-off-by: Felix Fietkau <nbd@nbd.name>