clr ptr after freeing state to avoid subsequent null ptr deref

(on vendor branch since this change already exists in Jouni's cvs).

Approved by:	re (scottl)
This commit is contained in:
Sam Leffler 2005-07-06 22:06:27 +00:00
parent 1c3c13af99
commit a593614af4

View File

@ -1000,6 +1000,7 @@ void wpa_supplicant_event(struct wpa_supplicant *wpa_s, wpa_event_type event,
wpa_s->interface_removed = 1;
wpa_supplicant_mark_disassoc(wpa_s);
l2_packet_deinit(wpa_s->l2);
wpa_s->l2 = NULL;
break;
}
break;