All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ] src/gatt-client: Fix iteration through options
@ 2016-06-16 13:29 Tobias Svehagen
  2016-06-16 13:29 ` [PATCH BlueZ 1/2] tools/gatt-service: " Tobias Svehagen
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Tobias Svehagen @ 2016-06-16 13:29 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Tobias Svehagen

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 0cbacca..6fc0d19 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.8.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-06-17  8:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-16 13:29 [PATCH BlueZ] src/gatt-client: Fix iteration through options Tobias Svehagen
2016-06-16 13:29 ` [PATCH BlueZ 1/2] tools/gatt-service: " Tobias Svehagen
2016-06-17  8:45   ` Luiz Augusto von Dentz
2016-06-16 13:29 ` [PATCH BlueZ 2/2] tools/gatt-service: Do not call parse_options on reply message Tobias Svehagen
2016-06-17  8:44 ` [PATCH BlueZ] src/gatt-client: Fix iteration through options Luiz Augusto von Dentz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.