diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2008-12-17 19:27:19 +0000 |
---|---|---|
committer | Jaap Keuter <jaap.keuter@xs4all.nl> | 2008-12-17 19:27:19 +0000 |
commit | 0c854831fc7e0cb277419572a7f3d101ad86c52d (patch) | |
tree | 0e73196fcf4fc682493cdf91f3e19069d6f2d598 /epan/dissectors/packet-udp.c | |
parent | a8f30cbca1b3c7831be55ba0f68e9207ae9704f4 (diff) | |
download | wireshark-0c854831fc7e0cb277419572a7f3d101ad86c52d.tar.gz wireshark-0c854831fc7e0cb277419572a7f3d101ad86c52d.tar.bz2 wireshark-0c854831fc7e0cb277419572a7f3d101ad86c52d.zip |
From Didier Gautheron:
If udp summary is not set dissector doesn't test for udp/udplite in proto_tree_add_item
svn path=/trunk/; revision=27038
Diffstat (limited to 'epan/dissectors/packet-udp.c')
-rw-r--r-- | epan/dissectors/packet-udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-udp.c b/epan/dissectors/packet-udp.c index 229b101bb5..ada93d5c6e 100644 --- a/epan/dissectors/packet-udp.c +++ b/epan/dissectors/packet-udp.c @@ -216,7 +216,7 @@ dissect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 ip_proto) get_udp_port(udph->uh_sport), udph->uh_sport, get_udp_port(udph->uh_dport), udph->uh_dport); } } else { - ti = proto_tree_add_item(tree, proto_udp, tvb, offset, 8, FALSE); + ti = proto_tree_add_item(tree, (ip_proto == IP_PROTO_UDP) ? proto_udp : proto_udplite, tvb, offset, 8, FALSE); } udp_tree = proto_item_add_subtree(ti, ett_udp); |