ieee80211_dwds_mcast(): check the correct mbuf ptr after encap.

This commit is contained in:
Rui Paulo 2009-06-18 21:15:41 +00:00
parent afd9f91c63
commit 9d0a7bee3b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194461

View File

@ -282,7 +282,7 @@ ieee80211_dwds_mcast(struct ieee80211vap *vap0, struct mbuf *m)
* Encapsulate the packet in prep for transmission.
*/
mcopy = ieee80211_encap(vap, ni, mcopy);
if (m == NULL) {
if (mcopy == NULL) {
/* NB: stat+msg handled in ieee80211_encap */
ieee80211_free_node(ni);
continue;