Diff between 5fd6b1f226e2cc5ded22b32be72d26ef9ac03518 and 19127fd42ddf19d9eb4335ce0ff10f25c920ebee

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 7258e7a..e7d6771 100644
--- a/audio/avrcp.c
+++ b/audio/avrcp.c
@@ -1086,7 +1086,7 @@ static size_t handle_vendordep_pdu(struct avctp *session, uint8_t transaction,
 		goto err_metadata;
 	}
 
-	for (handler = handlers; handler; handler++) {
+	for (handler = handlers; handler->pdu_id; handler++) {
 		if (handler->pdu_id == pdu->pdu_id)
 			break;
 	}