summaryrefslogtreecommitdiff
path: root/src/sdpd-request.c
diff options
context:
space:
mode:
authorAngela Bartholomaus <angelab@codeaurora.org>2010-08-25 10:01:42 -0700
committerJohan Hedberg <johan.hedberg@nokia.com>2010-08-25 20:09:27 +0300
commit3094ec7008735c80d35bd255ffc41e7bea2d3a3c (patch)
tree5925c57ebaed1ffca3797f97cce5273d0850f904 /src/sdpd-request.c
parent50c1564d86f8a0275e268d7cd67ad22883b248bb (diff)
downloadbluez-3094ec7008735c80d35bd255ffc41e7bea2d3a3c.tar.gz
Send an Invalid PDU Size Error Response for Service Search Req
Send error code 0x04 per CoreSpecv2.1, sec 4.4 for TP/SERVER/SS/BI-01-C
Diffstat (limited to 'src/sdpd-request.c')
-rw-r--r--src/sdpd-request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sdpd-request.c b/src/sdpd-request.c
index d56ffc25b..cc9fe82f1 100644
--- a/src/sdpd-request.c
+++ b/src/sdpd-request.c
@@ -367,7 +367,7 @@ static int service_search_req(sdp_req_t *req, sdp_buf_t *buf)
mlen = scanned + sizeof(uint16_t) + 1;
// ensure we don't read past buffer
if (plen < mlen || plen != mlen + *(uint8_t *)(pdata+sizeof(uint16_t))) {
- status = SDP_INVALID_SYNTAX;
+ status = SDP_INVALID_PDU_SIZE;
goto done;
}