aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mbim.c
diff options
context:
space:
mode:
authorJano Svitok <jsv@whitestein.com>2018-09-10 10:44:29 +0200
committerAnders Broman <a.broman58@gmail.com>2018-09-10 21:29:58 +0000
commita89266c337522708ccf310701a03e39a24735b73 (patch)
treecf129b79ead56261e8af0e8734289c5bbde3a6f2 /epan/dissectors/packet-mbim.c
parentbba021dd305bd5538bc391c16216fba95dcb0d3b (diff)
MBIM: MBIM_CID_MS_PROVISIONED_CONTEXT_V2 Query is legal
InformationBuffer must be empty Change-Id: I78367fc540122af099c3d9ab020b210ba112d997 Reviewed-on: https://code.wireshark.org/review/29576 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-mbim.c')
-rw-r--r--epan/dissectors/packet-mbim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-mbim.c b/epan/dissectors/packet-mbim.c
index 00d262d072..43c90031e5 100644
--- a/epan/dissectors/packet-mbim.c
+++ b/epan/dissectors/packet-mbim.c
@@ -5726,8 +5726,8 @@ dissect_mbim_control(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *
case MBIM_CID_MS_PROVISIONED_CONTEXT_V2:
if (cmd_type == MBIM_COMMAND_SET) {
mbim_dissect_set_ms_provisioned_context_v2(frag_tvb, pinfo, subtree, offset);
- } else {
- proto_tree_add_expert(subtree, pinfo, &ei_mbim_unexpected_msg, frag_tvb, offset, -1);
+ } else if (info_buff_len) {
+ proto_tree_add_expert(subtree, pinfo, &ei_mbim_unexpected_info_buffer, frag_tvb, offset, info_buff_len);
}
break;
case MBIM_CID_MS_NETWORK_BLACKLIST: