Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102664920
D43469.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
748 B
Referenced Files
None
Subscribers
None
D43469.diff
View Options
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c
--- a/sys/net80211/ieee80211_node.c
+++ b/sys/net80211/ieee80211_node.c
@@ -867,11 +867,14 @@
struct ieee80211_node_table *nt = obss->ni_table;
copy_bss(selbs, obss);
- ieee80211_node_decref(obss); /* iv_bss reference */
-
- IEEE80211_NODE_LOCK(nt);
- node_reclaim(nt, obss); /* station table reference */
- IEEE80211_NODE_UNLOCK(nt);
+ if (nt != NULL) {
+ ieee80211_node_decref(obss); /* iv_bss reference */
+ IEEE80211_NODE_LOCK(nt);
+ node_reclaim(nt, obss); /* station table reference */
+ IEEE80211_NODE_UNLOCK(nt);
+ } else {
+ ieee80211_free_node(obss); /* iv_bss reference */
+ }
obss = NULL; /* NB: guard against later use */
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 1:43 PM (21 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14659393
Default Alt Text
D43469.diff (748 B)
Attached To
Mode
D43469: net80211: fix a NULL deref in ieee80211_sta_join1()
Attached
Detach File
Event Timeline
Log In to Comment