From 619297bc6e16a928f9ece700458bd820d0abc364 Mon Sep 17 00:00:00 2001 From: Tobias Svehagen Date: Thu, 16 Jun 2016 15:29:12 +0200 Subject: [PATCH] tools/gatt-service: Fix iteration through options Fixes an infinite loop when trying to read a descriptor and the ReadValue call has at least one option. --- tools/gatt-service.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/gatt-service.c b/tools/gatt-service.c index 0c78c4db9..1cf8b3c0c 100644 --- a/tools/gatt-service.c +++ b/tools/gatt-service.c @@ -407,6 +407,8 @@ static int parse_options(DBusMessageIter *iter, const char **device) dbus_message_iter_get_basic(&value, device); printf("Device: %s\n", *device); } + + dbus_message_iter_next(&dict); } return 0; -- 2.47.3