summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-03-16 20:42:00 +0000
committersam <sam@FreeBSD.org>2005-03-16 20:42:00 +0000
commitc0c5a03a41a96c6a9b75b0814e5b44555f340e11 (patch)
tree8da37d2a7e95be53e82f76265a694fcac26725fc /sys
parent9b7f94f8335b6401015cd22e93061da469f16a16 (diff)
downloadFreeBSD-src-c0c5a03a41a96c6a9b75b0814e5b44555f340e11.zip
FreeBSD-src-c0c5a03a41a96c6a9b75b0814e5b44555f340e11.tar.gz
correct comparison for null ptr
Noticed by: Coverity Prevent analysis tool
Diffstat (limited to 'sys')
-rw-r--r--sys/net80211/ieee80211_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c
index bc25896..e8e59fd 100644
--- a/sys/net80211/ieee80211_output.c
+++ b/sys/net80211/ieee80211_output.c
@@ -229,7 +229,7 @@ ieee80211_classify(struct ieee80211com *ic, struct mbuf *m, struct ieee80211_nod
v_wme_ac = 0;
if (ni->ni_vlan != 0) {
struct m_tag *mtag = VLAN_OUTPUT_TAG(ic->ic_ifp, m);
- if (mtag != NULL) {
+ if (mtag == NULL) {
IEEE80211_NODE_STAT(ni, tx_novlantag);
return 1;
}
OpenPOWER on IntegriCloud