summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-06-15 17:41:39 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-06-15 17:50:14 +0300
commit2b3bf7b241b3c9eff4dcade1f574096b3e60d3c9 (patch)
tree017de826a47f0405104620f242e6bc9cfb77c173
parent34d9bd7dd27281cae1d2f9325947241e31819f18 (diff)
downloadbluez-2b3bf7b241b3c9eff4dcade1f574096b3e60d3c9.tar.gz
AVDTP: Do not respond ABORT command with invalid id
AVDTP spec, 8.15.2 Abort Response: "If an AVDTP_ABORT_CMD contains an invalid SEID, no response shall be sent."
-rw-r--r--audio/avdtp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c
index 736eed751..e9dea6cfe 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -1948,10 +1948,8 @@ static gboolean avdtp_abort_cmd(struct avdtp *session, uint8_t transaction,
}
sep = find_local_sep_by_seid(session->server, req->acp_seid);
- if (!sep || !sep->stream) {
- err = AVDTP_BAD_ACP_SEID;
- goto failed;
- }
+ if (!sep || !sep->stream)
+ return TRUE;
if (sep->ind && sep->ind->abort) {
if (!sep->ind->abort(session, sep, sep->stream, &err,