From Didier Gautheron:
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 17 Dec 2008 19:27:19 +0000 (19:27 +0000)
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 17 Dec 2008 19:27:19 +0000 (19:27 +0000)
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

epan/dissectors/packet-udp.c

index 229b101bb577590541f64eaae563cf04446df10b..ada93d5c6eb0b274fc5822e5dfa02f4af7dca12d 100644 (file)
@@ -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);