summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2009-06-18 21:15:41 +0000
committerrpaulo <rpaulo@FreeBSD.org>2009-06-18 21:15:41 +0000
commitef4801a2401af2dc069f64ba01660b52e9165d8a (patch)
treedc1a2d8793f700485ec522f1889fd7902b2b5dbc
parentb74ac99a510b71d1e4f9b640cf1f084052e00d45 (diff)
downloadFreeBSD-src-ef4801a2401af2dc069f64ba01660b52e9165d8a.zip
FreeBSD-src-ef4801a2401af2dc069f64ba01660b52e9165d8a.tar.gz
ieee80211_dwds_mcast(): check the correct mbuf ptr after encap.
-rw-r--r--sys/net80211/ieee80211_wds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_wds.c b/sys/net80211/ieee80211_wds.c
index fb2ada9..78529ed 100644
--- a/sys/net80211/ieee80211_wds.c
+++ b/sys/net80211/ieee80211_wds.c
@@ -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;
OpenPOWER on IntegriCloud