SYNC: fix decoding of PDU type 3 format

Bug: 14823
Change-Id: I143c57d9d81ff8510d60b8a0d9f2daea78c33e0b
Reviewed-on: https://code.wireshark.org/review/28032
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
Pascal Quantin 2018-06-05 10:32:46 +02:00
parent 6327a86981
commit ecc9b011c5
1 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ dissect_sync(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_
col_set_str(pinfo->cinfo, COL_INFO, "MBMS synchronisation protocol");
/* Ugly, but necessary to get the correct length for type 3 */
packet_nr = tvb_get_ntohs(tvb, offset+3);
packet_nr = tvb_get_ntohs(tvb, offset+3) + 1;
/* The length varies depending on PDU type */
switch (type) {
@ -128,7 +128,7 @@ dissect_sync(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_
offset += 2;
/* Octet 4 - Packet Number */
proto_tree_add_uint(sync_tree, hf_sync_packet_nr, tvb, offset, 2, packet_nr+1);
proto_tree_add_uint(sync_tree, hf_sync_packet_nr, tvb, offset, 2, packet_nr);
offset += 2;
/* Octet 6 - Elapsed Octet Counter */