aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2005-07-06 22:06:27 +0000
committerSam Leffler <sam@FreeBSD.org>2005-07-06 22:06:27 +0000
commita593614af422c98c7aa67e027b77267c7462a03f (patch)
tree83a8f3b8be363699cd6dbd877305b5e92ae739c8
parent1c3c13af99c093e214b6190bf51b030ad0db21e3 (diff)
downloadsrc-a593614af422c98c7aa67e027b77267c7462a03f.tar.gz
src-a593614af422c98c7aa67e027b77267c7462a03f.zip
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)
Notes
Notes: svn path=/vendor/wpa_supplicant/dist/; revision=147801
-rw-r--r--contrib/wpa_supplicant/wpa_supplicant.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/wpa_supplicant/wpa_supplicant.c b/contrib/wpa_supplicant/wpa_supplicant.c
index e88b46572cfe..0c57143f826e 100644
--- a/contrib/wpa_supplicant/wpa_supplicant.c
+++ b/contrib/wpa_supplicant/wpa_supplicant.c
@@ -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;