diff options
-rw-r--r-- | profiles/audio/avrcp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c index 0c3a761b2..638272150 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -2656,8 +2656,10 @@ static gboolean avrcp_set_browsed_player_rsp(struct avctp *conn, uint8_t len; len = pdu->params[i++]; + if (!len) + continue; - if (i + len > operand_count || len == 0) { + if (i + len > operand_count) { error("Invalid folder length"); break; } |