GSM A DTAP: fix detection of missing first mandatory element

Bug: 13760
Change-Id: I1c062420f96104a46e5d1478eb054f086f942b54
Reviewed-on: https://code.wireshark.org/review/21946
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
Pascal Quantin 2017-06-04 16:42:48 +02:00
parent 88cf898c44
commit 6d29f50d61
1 changed files with 4 additions and 3 deletions

View File

@ -6974,14 +6974,15 @@ dissect_dtap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
if (msg_str == NULL) return len;
if (offset >= len) return len;
/*
* decode elements
*/
if (dtap_msg_fcn == NULL)
{
proto_tree_add_item(dtap_tree, hf_gsm_a_dtap_message_elements, tvb, offset, len - offset, ENC_NA);
if (offset < len)
{
proto_tree_add_item(dtap_tree, hf_gsm_a_dtap_message_elements, tvb, offset, len - offset, ENC_NA);
}
}
else
{