diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2010-04-08 13:34:08 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2010-04-08 13:34:08 +0000 |
commit | a1efab7703d424760093cd22dd858db06db076b7 (patch) | |
tree | 0f019bba509942edaea68891325e971394106f8b | |
parent | 961511b4336c56732433f4fd9c21bbae470bb7f3 (diff) | |
download | FreeBSD-src-a1efab7703d424760093cd22dd858db06db076b7.zip FreeBSD-src-a1efab7703d424760093cd22dd858db06db076b7.tar.gz |
Prevent foot-shooting in ieee80211_ratectl_node_deinit().
MFC after: 1 month
-rw-r--r-- | sys/net80211/ieee80211_ratectl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_ratectl.h b/sys/net80211/ieee80211_ratectl.h index 29227a9..918d138 100644 --- a/sys/net80211/ieee80211_ratectl.h +++ b/sys/net80211/ieee80211_ratectl.h @@ -85,6 +85,8 @@ ieee80211_ratectl_node_deinit(struct ieee80211_node *ni) { const struct ieee80211vap *vap = ni->ni_vap; + if (ni->ni_rctls == NULL) /* ratectl not setup */ + return; vap->iv_rate->ir_node_deinit(ni); } |