From 1bed031c3ff67ca1ac80564382b24baf27a97ba4 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 22 Sep 2015 20:09:10 +0200 Subject: [PATCH] shared/gatt-helpers: Fix reporting discovery failure If sending ATT request failed discovery should be reported as failed. Due to missing goto success was overwritten with true value. This regression was introduced in db24bf09d66325a. --- src/shared/gatt-helpers.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/gatt-helpers.c b/src/shared/gatt-helpers.c index c773df7f1..008b8bc2a 100644 --- a/src/shared/gatt-helpers.c +++ b/src/shared/gatt-helpers.c @@ -1490,6 +1490,7 @@ static void discover_descs_cb(uint8_t opcode, const void *pdu, return; success = false; + goto done; } success = true; -- 2.47.3