diff options
author | Angela Bartholomaus <angelab@codeaurora.org> | 2010-08-25 10:01:43 -0700 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2010-08-25 20:09:39 +0300 |
commit | 4911b8931c6bc1337794ee30d84f1d6d0119c4ea (patch) | |
tree | ed3def4917365fdadbe98aae617e7958930a4a1d | |
parent | 3094ec7008735c80d35bd255ffc41e7bea2d3a3c (diff) | |
download | bluez-4911b8931c6bc1337794ee30d84f1d6d0119c4ea.tar.gz |
Send an Invalid PDU Size Error Response for Service Attr Req
Send error code 0x04 per CoreSpecv2.1, sec 4.4 for TP/SERVER/SA/BI-03-C
-rw-r--r-- | 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 cc9fe82f1..ccbd9208f 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; } |