Diff between 24deedd46bf61dfc6c90b6ce3e8471ad84a2f701 and 26204a61ebbc7006ff7868cddaa87d91eae47a4b

Changed Files

File Additions Deletions Status
audio/avrcp.c +1 -1 modified

Full Patch

diff --git a/audio/avrcp.c b/audio/avrcp.c
index f06afbf..879e959 100644
--- a/audio/avrcp.c
+++ b/audio/avrcp.c
@@ -1053,7 +1053,7 @@ static size_t handle_vendordep_pdu(struct avctp *session, uint8_t transaction,
 	pdu->packet_type = 0;
 	pdu->rsvd = 0;
 
-	if (operand_count + 3 < AVRCP_HEADER_LENGTH) {
+	if (operand_count < AVRCP_HEADER_LENGTH) {
 		pdu->params[0] = E_INVALID_COMMAND;
 		goto err_metadata;
 	}