DOCSIS: REG-ACK: do not show TLV Data if not present
Change-Id: I655b5b9eb75d339afbd8b9184ef85ffb7dd33774 Reviewed-on: https://code.wireshark.org/review/33681 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
This commit is contained in:
parent
44594aeb0d
commit
f9225faa87
1 changed files with 6 additions and 2 deletions
|
@ -3949,8 +3949,12 @@ dissect_regack (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* da
|
|||
val_to_str_ext (response, &docsis_conf_code_ext, "%d"));
|
||||
|
||||
/* Call Dissector for Appendix C TLV's */
|
||||
next_tvb = tvb_new_subset_remaining (tvb, 3);
|
||||
call_dissector (docsis_tlv_handle, next_tvb, pinfo, regack_tree);
|
||||
if(tvb_reported_length_remaining(tvb, 3) > 0 )
|
||||
{
|
||||
next_tvb = tvb_new_subset_remaining (tvb, 3);
|
||||
call_dissector (docsis_tlv_handle, next_tvb, pinfo, regack_tree);
|
||||
}
|
||||
|
||||
return tvb_captured_length(tvb);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue