From d2d6bc66e7c2e047e59ced4fc8de06c30aca66ab Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 22 Jan 2019 14:29:54 +0200 Subject: [PATCH] monitor/avctp: Fix parsing of GetFolderItems attributes Attributes in GetFolderItems are 32 bytes long not 16. --- monitor/avctp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitor/avctp.c b/monitor/avctp.c index fe96f6da6..6c2c2cac0 100644 --- a/monitor/avctp.c +++ b/monitor/avctp.c @@ -2320,9 +2320,9 @@ static bool avrcp_get_folder_items(struct avctp_frame *avctp_frame) count, count); for (; count > 0; count--) { - uint16_t attr; + uint32_t attr; - if (!l2cap_frame_get_be16(frame, &attr)) + if (!l2cap_frame_get_be32(frame, &attr)) return false; print_field("%*cAttributeID: 0x%08x (%s)", indent, ' ', -- 2.47.3