From 32e4f7d89758560b47521a0c802e5c1391c0af6e Mon Sep 17 00:00:00 2001 From: Michael Knudsen Date: Thu, 23 Oct 2008 16:21:22 +0000 Subject: Prevent a crash in ieee80211_setkeys() when unplugging an interface in hostap mode by canceling the group rekey timeout in ieee80211_node_detach(). ok damien --- sys/net80211/ieee80211_node.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index 50116a14b75..0eb7cb3064a 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_node.c,v 1.47 2008/10/15 19:12:18 blambert Exp $ */ +/* $OpenBSD: ieee80211_node.c,v 1.48 2008/10/23 16:21:21 mk Exp $ */ /* $NetBSD: ieee80211_node.c,v 1.14 2004/05/09 09:18:47 dyoung Exp $ */ /*- @@ -178,6 +178,8 @@ ieee80211_node_detach(struct ifnet *ifp) free(ic->ic_aid_bitmap, M_DEVBUF); if (ic->ic_tim_bitmap != NULL) free(ic->ic_tim_bitmap, M_DEVBUF); + + timeout_del(&ic->ic_rsn_timeout); } /* -- cgit v1.2.3