Diff between 5106fe8c868d5ec69af70f299eeedad42b900f69 and f54299a850676d92c3dafd83e9174fcfe420ccc9
Changed Files
| File | Additions | Deletions | Status |
| profiles/audio/avrcp.c | +6 | -0 | modified |
Full Patch
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index 80f34c7..dda9a30 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -3901,6 +3901,12 @@ static gboolean avrcp_handle_event(struct avctp *conn, uint8_t code,
case AVRCP_EVENT_UIDS_CHANGED:
avrcp_uids_changed(session, pdu);
break;
+ default:
+ if (event > AVRCP_EVENT_LAST) {
+ warn("Unsupported event: %u", event);
+ return FALSE;
+ }
+ break;
}
session->registered_events |= (1 << event);