mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-28 20:54:37 +04:00
handle_assoc() keeps a copy of each (Re)Association Request frame in
sta->assoc_frame_taxonomy for the get_sta_ies ubus method, but
ap_free_sta() frees only probe_ie_taxonomy and assoc_ie_taxonomy. Each
freed station that sent a (Re)Association Request thus leaks the copy
of its last request. A request of a station that is still present
frees the previous copy in taxonomy_sta_info_assoc_frame().
Free the copy in ap_free_sta() with the other taxonomy data, and
refresh the later patches whose hunks the two lines shift.
Fixes: 79cd45ddee ("hostapd: add association frame to taxonomy data")
Signed-off-by: Felix Fietkau <nbd@nbd.name>