diff options
author | Tobias Svehagen <tobias.svehagen@gmail.com> | 2016-06-16 15:29:11 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2016-06-17 11:42:47 +0300 |
commit | 61b5700e40f6c6c2197751ca06aa2abf6aff9c14 (patch) | |
tree | e0d5ae0ed1dd3e0431a8b78dc287578799a04a70 /src/gatt-client.c | |
parent | 0b8e372afac455042b4e2777e2dee3b9bdb5f48f (diff) | |
download | bluez-61b5700e40f6c6c2197751ca06aa2abf6aff9c14.tar.gz |
src/gatt-client: Fix iteration through options
Fix infinite loop when trying to read/write a characteristic or
a descriptor and the ReadValue/WriteValue call has at least one
option.
Diffstat (limited to 'src/gatt-client.c')
-rw-r--r-- | src/gatt-client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gatt-client.c b/src/gatt-client.c index 0cbacca53..6fc0d190b 100644 --- a/src/gatt-client.c +++ b/src/gatt-client.c @@ -401,6 +401,8 @@ static int parse_options(DBusMessageIter *iter, uint16_t *offset) return -EINVAL; dbus_message_iter_get_basic(&value, offset); } + + dbus_message_iter_next(&dict); } return 0; |