From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Angela Bartholomaus To: linux-bluetooth@vger.kernel.org Cc: rshaffer@codeaurora.org, johan.hedberg@gmail.com, marcel@holtmann.org, Angela Bartholomaus Subject: [PATCH 2/4] Bluetooth: Send an Invalid PDU Size Error Response for Service Attr Req Date: Wed, 25 Aug 2010 10:01:43 -0700 Message-Id: <1282755705-28400-3-git-send-email-angelab@codeaurora.org> In-Reply-To: <1282755705-28400-1-git-send-email-angelab@codeaurora.org> References: <1282755705-28400-1-git-send-email-angelab@codeaurora.org> List-ID: Send error code 0x04 per CoreSpecv2.1, sec 4.4 for TP/SERVER/SA/BI-03-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 cc9fe82..ccbd920 100644 --- a/src/sdpd-request.c +++ b/src/sdpd-request.c @@ -667,7 +667,7 @@ static int service_attr_req(sdp_req_t *req, sdp_buf_t *buf) mlen = scanned + sizeof(uint32_t) + sizeof(uint16_t) + 1; // ensure we don't read past buffer if (plen < mlen || plen != mlen + *(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.