Diff between 29952ebbb79458694a6c396f9fea2d22fe258f57 and 4ae6135d13a94f61a567a99f5a42bb3c81cb3605
Changed Files
| File | Additions | Deletions | Status |
| profiles/audio/avrcp.c | +4 | -0 | modified |
Full Patch
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index 4558407..89ba58c 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -1358,6 +1358,10 @@ static uint8_t avrcp_handle_register_notification(struct avrcp *session,
if (len != 5)
goto err;
+ /* Check if event is supported otherwise reject */
+ if (!(session->supported_events & (1 << pdu->params[0])))
+ goto err;
+
switch (pdu->params[0]) {
case AVRCP_EVENT_STATUS_CHANGED:
len = 2;