USB HID: fix saving the report descriptor body

Change-Id: I80b09d10e1435c90ac0c8534cc8e5e3ff0b4bda6
Signed-off-by: Filipe Laíns <lains@archlinux.org>
Reviewed-on: https://code.wireshark.org/review/37557
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Filipe Laíns 2020-06-18 19:37:54 +01:00 committed by Anders Broman
parent b7f282052c
commit 7fadf3ac05
1 changed files with 1 additions and 1 deletions

View File

@ -3724,7 +3724,7 @@ dissect_usb_hid_get_report_descriptor(packet_info *pinfo _U_, proto_tree *parent
if (usb_conv_info) {
data->usb_info = *usb_conv_info;
data->desc_length = offset - old_offset;
tvb_memdup(wmem_file_scope(), tvb, old_offset, data->desc_length);
data->desc_body = (guint8*) tvb_memdup(wmem_file_scope(), tvb, old_offset, data->desc_length);
insert_report_descriptor(pinfo, data);
}