diff options
Diffstat (limited to 'epan/dissectors/packet-tapa.c')
-rw-r--r-- | epan/dissectors/packet-tapa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-tapa.c b/epan/dissectors/packet-tapa.c index 3974a3221e..39b42f87e3 100644 --- a/epan/dissectors/packet-tapa.c +++ b/epan/dissectors/packet-tapa.c @@ -480,7 +480,7 @@ dissect_tapa_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat ws_ip* iph = (ws_ip*)data; /* The TAPA protocol also uses IP protocol number 4 but it isn't really IPIP */ - if ((iph->ip_p == IP_PROTO_IPIP) && ((tvb_get_guint8(tvb, 0) & 0xF0) != 0x40) && + if (iph && (iph->ip_p == IP_PROTO_IPIP) && ((tvb_get_guint8(tvb, 0) & 0xF0) != 0x40) && (tvb_get_ntohs(tvb, 2)) < 20) { dissect_tapa_static(tvb, pinfo, tree, data); return TRUE; |