aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-catapult-dct2000.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2021-12-17 16:37:22 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2021-12-17 16:37:22 +0000
commit834312cb629c0e9ab4357bf92518caf06b62acd5 (patch)
tree1a5212b827a86d9fea7ce4b21226674326b9c621 /epan/dissectors/packet-catapult-dct2000.c
parentb4054d3879e711727672b75d67b43d1b66fb3ba9 (diff)
DCT2000: For ipprim frames, show header even when no payload dissector
Diffstat (limited to 'epan/dissectors/packet-catapult-dct2000.c')
-rw-r--r--epan/dissectors/packet-catapult-dct2000.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-catapult-dct2000.c b/epan/dissectors/packet-catapult-dct2000.c
index da9dfa84a4..7d5a19227e 100644
--- a/epan/dissectors/packet-catapult-dct2000.c
+++ b/epan/dissectors/packet-catapult-dct2000.c
@@ -2926,10 +2926,8 @@ dissect_catapult_dct2000(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, vo
guint16 conn_id_offset = 0;
int offset_before_ipprim_header = offset;
- /* Will give up if couldn't match protocol anyway... */
- heur_protocol_handle = look_for_dissector(protocol_name);
- if ((heur_protocol_handle != 0) &&
- find_ipprim_data_offset(tvb, &offset, direction,
+ /* For ipprim, want to show ipprim header even if can't find dissector to call for payload.. */
+ if (find_ipprim_data_offset(tvb, &offset, direction,
&source_addr_offset, &source_addr_length,
&dest_addr_offset, &dest_addr_length,
&source_port_offset, &dest_port_offset,
@@ -2950,6 +2948,7 @@ dissect_catapult_dct2000(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, vo
/* Will use this dissector then. */
+ heur_protocol_handle = look_for_dissector(protocol_name);
protocol_handle = heur_protocol_handle;
/* Add address parameters to tree */