OSDN Git Service

tools: Fix parsing of PlayItem pdu in hcidump
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 26 Apr 2013 09:38:07 +0000 (12:38 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 26 Apr 2013 11:06:09 +0000 (14:06 +0300)
tools/parser/avrcp.c

index 7685258..246fd12 100644 (file)
@@ -1376,7 +1376,7 @@ static void avrcp_play_item_dump(int level, struct frame *frm,
        if (ctype > AVC_CTYPE_GENERAL_INQUIRY)
                goto response;
 
-       if (len < 13) {
+       if (len < 11) {
                printf("PDU Malformed\n");
                raw_dump(level, frm);
                return;