GSMTAP: fix empty INFO column for PTCCH/D messages

Change-Id: I3abc627ee0e88cc276511af66b33bda990fe5624
Reviewed-on: https://code.wireshark.org/review/35157
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
This commit is contained in:
Vadim Yanitskiy 2019-11-20 17:38:48 +07:00 committed by Pascal Quantin
parent 608d7ddad4
commit 8ca101689b
1 changed files with 4 additions and 2 deletions

View File

@ -442,12 +442,14 @@ dissect_sacch_l1h(tvbuff_t *tvb, proto_tree *tree)
* +---+----------+---+----------+-----+---+-----------+------------------+
*/
static void
dissect_ptcch_dl(tvbuff_t *tvb, proto_tree *tree)
dissect_ptcch_dl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
proto_tree *sub_tree;
proto_item *ti, *gi;
int offset;
col_set_str(pinfo->cinfo, COL_INFO, "Packet Timing Advance Control");
if (!tree)
return;
@ -686,7 +688,7 @@ dissect_gsmtap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _
case GSMTAP_CHANNEL_PTCCH:
/* PTCCH/D carries Timing Advance updates encoded with CS-1 */
if (pinfo->p2p_dir == P2P_DIR_RECV) {
dissect_ptcch_dl(payload_tvb, tree);
dissect_ptcch_dl(payload_tvb, pinfo, tree);
return tvb_captured_length(tvb);
}