diff options
author | sam <sam@FreeBSD.org> | 2005-01-18 20:34:22 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-01-18 20:34:22 +0000 |
commit | ff12c179c80f76764f05c90b7a12762ce602e3ac (patch) | |
tree | cab5a67215a1a445496fb97b53470cab26866766 /sys/net80211/ieee80211_node.c | |
parent | ae59d1786661e0dc90ee45f45344b7b4485403c8 (diff) | |
download | FreeBSD-src-ff12c179c80f76764f05c90b7a12762ce602e3ac.zip FreeBSD-src-ff12c179c80f76764f05c90b7a12762ce602e3ac.tar.gz |
avoid possible null pointer deref when refcnt debugging is enabled; the
node may be orphaned
Submitted by: Tai-hwa Liang
Diffstat (limited to 'sys/net80211/ieee80211_node.c')
-rw-r--r-- | sys/net80211/ieee80211_node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index bc27733..5d57f23 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -1234,7 +1234,7 @@ ieee80211_free_node(struct ieee80211_node *ni) struct ieee80211_node_table *nt = ni->ni_table; #ifdef IEEE80211_DEBUG_REFCNT - IEEE80211_DPRINTF(nt->nt_ic, IEEE80211_MSG_NODE, + IEEE80211_DPRINTF(ni->ni_ic, IEEE80211_MSG_NODE, "%s (%s:%u) %s refcnt %d\n", __func__, func, line, ether_sprintf(ni->ni_macaddr), ieee80211_node_refcnt(ni)-1); #endif |