OSITP: do not call subdissector if there is no data
None of the current heuristics dissectors for "cotp" accept the packet, so just skip calling subdissectors if the packet is empty. Change-Id: Ie26f05d472b4d184d5229ceab8b143a88cc921fc Reviewed-on: https://code.wireshark.org/review/30103 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Émilio Gonzalez <egg997@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
8c31cdc13c
commit
1a9f074c0c
|
@ -1576,6 +1576,7 @@ static int ositp_decode_CR_CC(tvbuff_t *tvb, int offset, guint8 li, guint8 tpdu,
|
|||
* XXX - tell the subdissector that this is user data in a CR or
|
||||
* CC packet rather than a DT packet?
|
||||
*/
|
||||
if (tvb_captured_length_remaining(tvb, offset)) {
|
||||
next_tvb = tvb_new_subset_remaining(tvb, offset);
|
||||
if (!uses_inactive_subset){
|
||||
if (dissector_try_heuristic(cotp_heur_subdissector_list, next_tvb, pinfo,
|
||||
|
@ -1589,6 +1590,7 @@ static int ositp_decode_CR_CC(tvbuff_t *tvb, int offset, guint8 li, guint8 tpdu,
|
|||
call_data_dissector( next_tvb, pinfo, tree);
|
||||
offset += tvb_captured_length_remaining(tvb, offset);
|
||||
/* we dissected all of the containing PDU */
|
||||
}
|
||||
|
||||
return offset;
|
||||
|
||||
|
|
Loading…
Reference in New Issue