From 61b5700e40f6c6c2197751ca06aa2abf6aff9c14 Mon Sep 17 00:00:00 2001 From: Tobias Svehagen Date: Thu, 16 Jun 2016 15:29:11 +0200 Subject: [PATCH] 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. --- src/gatt-client.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.47.3