diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2013-06-17 19:52:01 +0000 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2013-06-17 19:52:01 +0000 |
commit | 20de5f1a9a7d245887fa0e95bd9ef3dfbb8166bc (patch) | |
tree | dcc5b2c0eb40d604a0aa324ebbc0a320bfe9132a /epan/dissectors/packet-ansi_637.c | |
parent | 30986365027cd4faf95f7fc2d99f7d06f7139114 (diff) |
Fix 7bit ASCII / IA5 SMS dissection broken in r49910
svn path=/trunk/; revision=49986
Diffstat (limited to 'epan/dissectors/packet-ansi_637.c')
-rw-r--r-- | epan/dissectors/packet-ansi_637.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ansi_637.c b/epan/dissectors/packet-ansi_637.c index c57f9bac84..4bc559b90c 100644 --- a/epan/dissectors/packet-ansi_637.c +++ b/epan/dissectors/packet-ansi_637.c @@ -586,6 +586,9 @@ tele_param_user_data(tvbuff_t *tvb, proto_tree *tree, guint len, guint32 offset) } saved_offset = offset; + bit = bit ? bit : 8; + oct = tvb_get_guint8(tvb_out, offset); + offset++; decode_7_bits(tvb_out, &offset, num_fields, &oct, &bit, ansi_637_bigbuf); @@ -644,6 +647,9 @@ tele_param_user_data(tvbuff_t *tvb, proto_tree *tree, guint len, guint32 offset) dis_field_udh(tvb_out, tree, &offset, &required_octs, &num_fields, TRUE, &bit); } saved_offset = offset; + bit = bit ? bit : 8; + oct = tvb_get_guint8(tvb_out, offset); + offset++; out_len = decode_7_bits(tvb_out, &offset, num_fields, &oct, &bit, ansi_637_bigbuf); IA5_7BIT_decode(ia5_637_bigbuf, ansi_637_bigbuf, out_len); |