From 2b3bf7b241b3c9eff4dcade1f574096b3e60d3c9 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 15 Jun 2012 17:41:39 +0300 Subject: 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." --- audio/avdtp.c | 6 ++---- 1 file 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, -- cgit v1.2.1