diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2016-11-08 11:52:17 +0100 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2016-11-08 10:55:20 +0000 |
commit | 1ae0c1ebfaed748378395a0c690b10f8e7eb3265 (patch) | |
tree | bd57cdeff259117544fd870dedefe87bca8f8ecb /epan/dissectors/packet-gsm_a_common.c | |
parent | c12280f804d419cbcd386a6d662f150a66012d71 (diff) |
GSM A: allow a length of 3 bytes when using the 'no identity' type
As stated in 3GPP 24.008 ยง10.5.1.4, for GMM and EMM procedures the
length should be set to 3 when using the 'no identity' type.
Change-Id: Ib2d5930416b0d26853f4cc430df0ce2f29488877
Reviewed-on: https://code.wireshark.org/review/18707
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-gsm_a_common.c')
-rw-r--r-- | epan/dissectors/packet-gsm_a_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-gsm_a_common.c b/epan/dissectors/packet-gsm_a_common.c index 7c86fafec7..7d1b7cb13f 100644 --- a/epan/dissectors/packet-gsm_a_common.c +++ b/epan/dissectors/packet-gsm_a_common.c @@ -2170,7 +2170,7 @@ de_mid(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guin curr_offset++; - if (len > 1) + if (len != 1 && len != 3) { expert_add_info(pinfo, tree, &ei_gsm_a_format_not_supported); } |