Diff between c944e5f1940930d64ce92be591700b0f84080c36 and e21680c9355a0f9d5ef6d4a5ae032de274e87b37
Changed Files
| File | Additions | Deletions | Status |
| profiles/audio/avrcp.c | +2 | -2 | modified |
Full Patch
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index ccf34b2..22bd5df 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -1923,9 +1923,9 @@ static size_t handle_vendordep_pdu(struct avctp *conn, uint8_t transaction,
operands += sizeof(*pdu);
operand_count -= sizeof(*pdu);
- if (pdu->params_len != operand_count) {
+ if (ntohs(pdu->params_len) != operand_count) {
DBG("AVRCP PDU parameters length don't match");
- pdu->params_len = operand_count;
+ pdu->params_len = htons(operand_count);
}
for (handler = session->control_handlers; handler->pdu_id; handler++) {