aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-zbee-nwk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-zbee-nwk.c b/epan/dissectors/packet-zbee-nwk.c
index 88898114df..0cda7fc284 100644
--- a/epan/dissectors/packet-zbee-nwk.c
+++ b/epan/dissectors/packet-zbee-nwk.c
@@ -306,7 +306,8 @@ dissect_zbee_nwk_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void
ieee802154_packet *packet = (ieee802154_packet *)data;
/* All ZigBee frames must always have a 16-bit source address. */
- if (packet->src_addr_mode != IEEE802154_FCF_ADDR_SHORT) {
+ if ( (packet == NULL) ||
+ (packet->src_addr_mode != IEEE802154_FCF_ADDR_SHORT) ) {
return FALSE;
}
/* ZigBee MAC frames must always contain a 16-bit destination address. */