Fix two expert calls on the wrong proto_item.
authorEvan Huus <eapache@gmail.com>
Sun, 1 Sep 2013 13:43:26 +0000 (13:43 -0000)
committerEvan Huus <eapache@gmail.com>
Sun, 1 Sep 2013 13:43:26 +0000 (13:43 -0000)
svn path=/trunk/; revision=51628

epan/dissectors/packet-collectd.c
epan/dissectors/packet-dvbci.c

index 4eb4a6a7b9302d4915a3d76ddef10684d5aca127..8f178c75f52ea46654e10db61d8b1c08a29872e8 100644 (file)
@@ -1067,7 +1067,7 @@ dissect_collectd (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                 * at the end of the packet. */
                if (size < 4)
                {
-                       proto_tree_add_expert_format(pt, pinfo, &ei_collectd_garbage, tvb,
+                       proto_tree_add_expert_format(pi, pinfo, &ei_collectd_garbage, tvb,
                                                  offset, -1,
                                                  "Garbage at end of packet: Length = %i <BAD>",
                                                  size);
index 28a5855754e0a788f4d28594e02957294d3ae50a..2fbbec6baadf11c3936ab90243ee12ccf4ef204b 100644 (file)
@@ -3890,7 +3890,7 @@ dissect_dvbci_apdu(tvbuff_t *tvb, circuit_t *circuit,
     pi = proto_tree_add_item(
                 app_tree, hf_dvbci_apdu_tag, tvb, 0, APDU_TAG_SIZE, ENC_BIG_ENDIAN);
     if (tag_str == NULL) {
-        expert_add_info(pinfo, app_tree, &ei_dvbci_apdu_tag);
+        expert_add_info(pinfo, pi, &ei_dvbci_apdu_tag);
         return;
     }