correct comparison for null ptr
Noticed by: Coverity Prevent analysis tool
This commit is contained in:
parent
6edf09a6e9
commit
bd40429e3d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143716
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user