diff options
author | jake <jake@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-12-17 19:27:19 +0000 |
---|---|---|
committer | jake <jake@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-12-17 19:27:19 +0000 |
commit | 446f84e22bb35855e5d8b8d7e158497c5c10311e (patch) | |
tree | 0e73196fcf4fc682493cdf91f3e19069d6f2d598 /epan/dissectors/packet-udp.c | |
parent | 183dedb82546d00edc485353d413a52a3be28976 (diff) |
From Didier Gautheron:
If udp summary is not set dissector doesn't test for udp/udplite in proto_tree_add_item
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27038 f5534014-38df-0310-8fa8-9805f1628bb7
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); |