diff options
-rw-r--r-- | proto_80211_mac_hdr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proto_80211_mac_hdr.c b/proto_80211_mac_hdr.c index cc5c26e..33cf8a9 100644 --- a/proto_80211_mac_hdr.c +++ b/proto_80211_mac_hdr.c @@ -3385,8 +3385,8 @@ static const char *mgt_sub(u8 subtype, struct pkt_buff *pkt, const char *dst, *src, *bssid; mgmt = (struct ieee80211_mgmt *) pkt_pull(pkt, sizeof(*mgmt)); - if (mgmt == NULL) - return 0; + if (!mgmt) + return NULL; dst = lookup_vendor((mgmt->da[0] << 16) | (mgmt->da[1] << 8) | |