dissectors: 80211_mac_hdr: Check return value of pkt_pull
commitfa6e21e9393f814f9656460aeaa288dc543d6cec
authorTobias Klauser <tklauser@distanz.ch>
Tue, 21 Apr 2015 16:12:58 +0000 (21 18:12 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Tue, 21 Apr 2015 16:12:58 +0000 (21 18:12 +0200)
tree53544d9b25c91e9a1ea417f966933180fe4efa01
parent679e6211238039322272e0d3d085fab0d7c5c91d
dissectors: 80211_mac_hdr: Check return value of pkt_pull

Prevent a NULL pointer dereference if (for whatever reason) pkt_pull
returns NULL.

This issue was discovered using the Coverity scanner.

Fixes: 9278bb65 ("netsniff-ng: Dump basic radiotap header info")
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
proto_80211_mac_hdr.c