aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2007-10-02 15:46:17 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2007-10-02 15:46:17 +0000
commit727d42fa9bbf295815aa26ea3f6f25eb043bb3d2 (patch)
tree0d4df3a5702ec09596b0d62393a3f61439ae8cbc /epan
parent46d3565179d13e5759b142dbb63a05295fe33df5 (diff)
Do not indicate bogus length if inside an icmp.
svn path=/trunk/; revision=23049
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-udp.c b/epan/dissectors/packet-udp.c
index c45691c734..ea1f825b10 100644
--- a/epan/dissectors/packet-udp.c
+++ b/epan/dissectors/packet-udp.c
@@ -234,7 +234,7 @@ dissect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 ip_proto)
col_append_fstr(pinfo->cinfo, COL_INFO, " [BAD UDP LENGTH %u < 8]", udph->uh_ulen);
return;
}
- if ((udph->uh_ulen > tvb_reported_length(tvb)) && ! pinfo->fragmented) {
+ if ((udph->uh_ulen > tvb_reported_length(tvb)) && ! pinfo->fragmented && ! pinfo->in_error_pkt) {
/* Bogus length - it goes past the end of the IP payload */
item = proto_tree_add_uint_format(udp_tree, hf_udp_length, tvb, offset + 4, 2,
udph->uh_ulen, "Length: %u (bogus, payload length %u)", udph->uh_ulen, tvb_reported_length(tvb));