--- src/sdpd-service.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/sdpd-service.c b/src/sdpd-service.c index cdbb4f4..35e333d 100644 --- a/src/sdpd-service.c +++ b/src/sdpd-service.c @@ -242,7 +242,7 @@ void create_ext_inquiry_response(const char *name, if (uuid[i] == rec->svclass.value.uuid16) break; - if (i == index - 1) + if (i < index) continue; uuid[index++] = rec->svclass.value.uuid16; -- 1.7.2 -- Inga Stotland Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum. -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html