summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2014-07-07 11:06:27 +0100
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2014-07-07 10:42:14 +0000
commit7801a97fd86acdee8c4525be503720d791124f64 (patch)
tree06b6fd319316540c18cd0974adb95fddd94f9379
parent3c638d8bf832c12ce6000593360582d1656fbe03 (diff)
downloadwireshark-7801a97fd86acdee8c4525be503720d791124f64.tar.gz
Trying to create and use an empty tvb now throws an exception. Just pass current tvb to mac-lte dissector.
Change-Id: I4aa24342192ec079254f26e00317470377c3e20b Reviewed-on: https://code.wireshark.org/review/2916 Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
-rw-r--r--epan/dissectors/packet-catapult-dct2000.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-catapult-dct2000.c b/epan/dissectors/packet-catapult-dct2000.c
index 1ddfcfdcfa..a248d7b431 100644
--- a/epan/dissectors/packet-catapult-dct2000.c
+++ b/epan/dissectors/packet-catapult-dct2000.c
@@ -1977,7 +1977,6 @@ static void check_for_oob_mac_lte_events(packet_info *pinfo, tvbuff_t *tvb, prot
guint temp;
mac_lte_oob_event oob_event;
struct mac_lte_info *p_mac_lte_info;
- tvbuff_t *mac_lte_tvb = NULL;
guint16 n;
/* Look for strings matching expected formats */
@@ -2074,8 +2073,7 @@ static void check_for_oob_mac_lte_events(packet_info *pinfo, tvbuff_t *tvb, prot
}
/* Call MAC dissector */
- mac_lte_tvb = tvb_new_subset(tvb, 0, 0, 0);
- call_dissector_only(mac_lte_handle, mac_lte_tvb, pinfo, tree, NULL);
+ call_dissector_only(mac_lte_handle, tvb, pinfo, tree, NULL);
}