summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--proto_80211_mac_hdr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/proto_80211_mac_hdr.c b/proto_80211_mac_hdr.c
index 0705eec..199c4e7 100644
--- a/proto_80211_mac_hdr.c
+++ b/proto_80211_mac_hdr.c
@@ -3154,6 +3154,8 @@ static void ieee80211(struct pkt_buff *pkt)
rtap = (struct ieee80211_radiotap_header *)pkt_pull(pkt,
sizeof(*rtap));
+ if (rtap == NULL)
+ return;
tprintf(" [ Radiotap ");
tprintf("Version (%u), ", rtap->version);