Commit: 7641fc83a9a790b761b0c14852156a6651b7fc34
Parent: 375d02473fb7f8b90e39bc79001ab6f97a81bd3b
Author: Vinicius Costa Gomes <vcgomes@gmail.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2016-08-12 10:53:04
Tree: 771a1d48eebf40b49d915eee65a5f1067d0ff3b4

core: Fix wrong expectations for the return of recv() Since commit b5f34f9420b50 "Bluetooth: Fix bt_sock_recvmsg return value" in the kernel, Bluetooth sockets of type SOCK_SEQPACKET, when read() will return the size of the packet received, which can be larger than the the buffer passed by user space. In this case the problem was causing a disconnection soon after the reception of an SDP request. Reported by: Alban Browaeys <prahal@yahoo.com>

Diffstat

M src/sdpd-server.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)

View Full Diff | Patch