summaryrefslogtreecommitdiff
path: root/tools/gatt-service.c
diff options
context:
space:
mode:
authorTobias Svehagen <tobias.svehagen@gmail.com>2016-06-16 15:29:12 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2016-06-17 11:42:47 +0300
commit619297bc6e16a928f9ece700458bd820d0abc364 (patch)
tree33cb8eedb5c678b43bd5156bc59eb4aa6125041a /tools/gatt-service.c
parent0688527ea9c35be4158f90af17a2934d11c63601 (diff)
downloadbluez-619297bc6e16a928f9ece700458bd820d0abc364.tar.gz
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.
Diffstat (limited to 'tools/gatt-service.c')
-rw-r--r--tools/gatt-service.c2
1 files changed, 2 insertions, 0 deletions
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;