CFM: fix CFM Type Test signal (TST) without CRC dissection
authorJustinKu <jiunrong@gmail.com>
Tue, 23 Jun 2015 03:47:23 +0000 (20:47 -0700)
committerPascal Quantin <pascal.quantin@gmail.com>
Tue, 23 Jun 2015 03:52:14 +0000 (03:52 +0000)
Bug: 11286
Change-Id: I8efce21e2bab55f9fea50a234419082cdc288f4e
Reviewed-on: https://code.wireshark.org/review/9048
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
epan/dissectors/packet-cfm.c

index d237038f9ed42ee39727db9e602d7adbd5341dd8..a9cf7a99c3f12c8630fde24a22df0de163c96d24 100644 (file)
@@ -1527,7 +1527,7 @@ static void dissect_cfm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                                                                case 2:
                                                                        proto_tree_add_item(cfm_tlv_tree, hf_tlv_tst_test_pattern,
                                                                                        tvb, tlv_data_offset, cfm_tlv_length-1, ENC_NA);
-                                                                       tlv_data_offset += cfm_tlv_length;
+                                                                       tlv_data_offset += cfm_tlv_length-1;
                                                                        break;
                                                                case 1:
                                                                case 3: