diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2014-06-03 19:42:25 +0200 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2014-06-03 18:01:51 +0000 |
commit | c5de173edc09cceb7c351cf8b85a470ad597be17 (patch) | |
tree | 4d78ccd29737544ee7953997821e9cd14278ff1e /epan/dissectors/packet-mbim.c | |
parent | 9389d789a4061917529ff0b4c8795353c4b4f9a7 (diff) |
MBIM: do not access to hash map when it is not initialized yet
Change-Id: I560941115316ead5a85b9e0b55be693217fddff2
Reviewed-on: https://code.wireshark.org/review/1940
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-mbim.c')
-rw-r--r-- | epan/dissectors/packet-mbim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mbim.c b/epan/dissectors/packet-mbim.c index 69f4a907a0..18a4dda3c3 100644 --- a/epan/dissectors/packet-mbim.c +++ b/epan/dissectors/packet-mbim.c @@ -1759,7 +1759,7 @@ mbim_dissect_service_id_uuid(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree * } } - if ((i == array_length(mbim_uuid_service_id_vals)) && uuid_ext_info) { + if ((i == array_length(mbim_uuid_service_id_vals)) && mbim_uuid_ext_hash && uuid_ext_info) { /* Let's check if UUID is known in extension table */ uuid_ext[0] = tvb_get_ntohl(tvb, *offset); uuid_ext[1] = tvb_get_ntohl(tvb, *offset + 4); |