From: Angela Bartholomaus <angelab@codeaurora.org>
To: linux-bluetooth@vger.kernel.org
Cc: rshaffer@codeaurora.org, johan.hedberg@gmail.com,
marcel@holtmann.org, Angela Bartholomaus <angelab@codeaurora.org>
Subject: [PATCH 3/4] Bluetooth: Send an Invalid PDU Size Error Resp for Service Attr Search Req
Date: Wed, 25 Aug 2010 10:01:44 -0700 [thread overview]
Message-ID: <1282755705-28400-4-git-send-email-angelab@codeaurora.org> (raw)
In-Reply-To: <1282755705-28400-1-git-send-email-angelab@codeaurora.org>
Send error code 0x04 per CoreSpecv2.1, sec 4.4 for TP/SERVER/SSA/BI-02-C
---
src/sdpd-request.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/sdpd-request.c b/src/sdpd-request.c
index ccbd920..8547939 100644
--- a/src/sdpd-request.c
+++ b/src/sdpd-request.c
@@ -818,7 +818,7 @@ static int service_search_attr_req(sdp_req_t *req, sdp_buf_t *buf)
plen = ntohs(((sdp_pdu_hdr_t *)(req->buf))->plen);
if (plen < totscanned || plen != totscanned + *(uint8_t *)pdata) {
- status = SDP_INVALID_SYNTAX;
+ status = SDP_INVALID_PDU_SIZE;
goto done;
}
--
1.7.2.2
--
Angela Bartholomaus
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
next prev parent reply other threads:[~2010-08-25 17:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-25 17:01 [PATCH v2 0/4] Fix error reporting for SDP Requests Angela Bartholomaus
2010-08-25 17:01 ` [PATCH 1/4] Bluetooth: Send an Invalid PDU Size Error Response for Service Search Req Angela Bartholomaus
2011-01-17 9:20 ` Johan Hedberg
2010-08-25 17:01 ` [PATCH 2/4] Bluetooth: Send an Invalid PDU Size Error Response for Service Attr Req Angela Bartholomaus
2010-08-25 17:01 ` Angela Bartholomaus [this message]
2010-08-25 17:01 ` [PATCH 4/4] Bluetooth: Send Invalid Syntax Error if Resp Size Less Than 0x07 Angela Bartholomaus
2010-08-25 17:11 ` [PATCH v2 0/4] Fix error reporting for SDP Requests Johan Hedberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1282755705-28400-4-git-send-email-angelab@codeaurora.org \
--to=angelab@codeaurora.org \
--cc=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=rshaffer@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).