Do not indicate bogus length if inside an icmp.
svn path=/trunk/; revision=23049
This commit is contained in:
parent
46d3565179
commit
727d42fa9b
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue