diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-04-06 14:19:03 -0700 |
---|---|---|
committer | Szymon Janc <szymon.janc@codecoup.pl> | 2020-04-07 09:13:17 +0200 |
commit | e45b7a21f9a508ecaf4746bde5b97a4ded53edf0 (patch) | |
tree | 8e3ff603a3262198d72561968d53525f42ffd64e /src/gatt-database.c | |
parent | 590a11b82f5e1b77d739e49a30cedc30e255d6ae (diff) | |
download | bluez-e45b7a21f9a508ecaf4746bde5b97a4ded53edf0.tar.gz |
gatt: Fix not sending any data when server supports AcquireWrite
msg.msg_iovlen should be set to 1 to forward the data received over the
file descriptor.
Diffstat (limited to 'src/gatt-database.c')
-rw-r--r-- | src/gatt-database.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gatt-database.c b/src/gatt-database.c index 92e24e5f7..f2da27694 100644 --- a/src/gatt-database.c +++ b/src/gatt-database.c @@ -2394,6 +2394,7 @@ static int sock_io_send(struct io *io, const void *data, size_t len) memset(&msg, 0, sizeof(msg)); msg.msg_iov = &iov; + msg.msg_iovlen = 1; return sendmsg(io_get_fd(io), &msg, MSG_NOSIGNAL); } |