Skip to content

Commit

Permalink
net80211: avoid double call IOFree of ni->ni_unref_arg.
Browse files Browse the repository at this point in the history
  • Loading branch information
zxystd committed May 31, 2023
1 parent 485fc16 commit a0853fb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions itl80211/openbsd/net80211/ieee80211_node.c
Original file line number Diff line number Diff line change
Expand Up @@ -1669,9 +1669,11 @@ ieee80211_node_cleanup(struct ieee80211com *ic, struct ieee80211_node *ni)
}
ieee80211_ba_del(ni);
ieee80211_ba_free(ni);
IOFree(ni->ni_unref_arg, ni->ni_unref_arg_size);
ni->ni_unref_arg = NULL;
ni->ni_unref_arg_size = 0;
if (ni->ni_unref_arg != NULL) {
IOFree(ni->ni_unref_arg, ni->ni_unref_arg_size);
ni->ni_unref_arg = NULL;
ni->ni_unref_arg_size = 0;
}

#ifndef IEEE80211_STA_ONLY
mq_purge(&ni->ni_savedq);
Expand Down

0 comments on commit a0853fb

Please sign in to comment.