This fixes an issue where freed MB IEs buffer memory could potentially
have been accessed after an interface is detached from FST group.
Without this fix, if an interface is detached from FST group, it can use
MB IEs buffer previously set by fst_iface_set_ies(), although the buffer
was released by fst_iface_delete().
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
void fst_iface_delete(struct fst_iface *i)
{
+ fst_iface_set_ies(i, NULL);
wpabuf_free(i->mb_ie);
os_free(i);
}