]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FST: Fix MB IE clearing on detach
authorAnton Nayshtut <qca_antonn@qca.qualcomm.com>
Mon, 27 Jul 2015 13:45:36 +0000 (16:45 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 3 Aug 2015 14:40:29 +0000 (17:40 +0300)
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>
src/fst/fst_iface.c

index 4fba9b1a513ef12d4e00ac772676f750e1977b80..5a92d2c33e420f41e562e33a8741995cb10f01c6 100644 (file)
@@ -43,6 +43,7 @@ struct fst_iface * fst_iface_create(struct fst_group *g, const char *ifname,
 
 void fst_iface_delete(struct fst_iface *i)
 {
+       fst_iface_set_ies(i, NULL);
        wpabuf_free(i->mb_ie);
        os_free(i);
 }