forked from osmocom/wireshark
PROFINET: Fix incorrect API call, assertion
Fix two calls of proto_tree_add_item() when proto_tree_add_uint() was meant. Passing the actual value of a field instead of an encoding into proto_tree_add_item() has unexpected results. Fix #17909. (The whole area of this dissector would probably be cleaner with more calls to add_item(), but this is a smaller change consistent with the rest.)
This commit is contained in:
parent
813854102b
commit
e0a11d0607
|
@ -218,7 +218,7 @@ dissect_DataStatus(tvbuff_t *tvb, int offset, proto_tree *tree, packet_info *pin
|
|||
if (inputFlag)
|
||||
{
|
||||
proto_tree_add_uint(sub_tree, hf_pn_rt_data_status_valid, tvb, offset, 1, u8DataStatus);
|
||||
proto_tree_add_item(tree, hf_pn_rt_frame_info_function_meaning_input_conv, tvb, offset, 1, u8DataStatus);
|
||||
proto_tree_add_uint(tree, hf_pn_rt_frame_info_function_meaning_input_conv, tvb, offset, 1, u8DataStatus);
|
||||
if (u8State == 0 && u8Redundancy == 0 && u8DataValid == 1)
|
||||
{
|
||||
proto_tree_add_boolean(sub_tree, hf_pn_rt_data_status_redundancy_input_cr_state_is_backup, tvb, offset, 1, u8DataStatus);
|
||||
|
@ -250,7 +250,7 @@ dissect_DataStatus(tvbuff_t *tvb, int offset, proto_tree *tree, packet_info *pin
|
|||
// output conversation is found.
|
||||
else if (outputFlag)
|
||||
{
|
||||
proto_tree_add_item(tree, hf_pn_rt_frame_info_function_meaning_output_conv, tvb, offset, 1, u8DataStatus);
|
||||
proto_tree_add_uint(tree, hf_pn_rt_frame_info_function_meaning_output_conv, tvb, offset, 1, u8DataStatus);
|
||||
|
||||
proto_tree_add_uint(sub_tree, hf_pn_rt_data_status_valid, tvb, offset, 1, u8DataStatus);
|
||||
proto_tree_add_boolean(sub_tree, hf_pn_rt_data_status_redundancy_output_cr, tvb, offset, 1, u8DataStatus);
|
||||
|
|
Loading…
Reference in New Issue