This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit 9f845c47c99d48f6b0469f77e540dd2719330cca
Author: Piotr Narajowski <[email protected]>
AuthorDate: Mon Jun 3 14:10:21 2024 +0200

    nimble/bttester: Add early exit in read_var_cb
    
    This commit applies early exit if status != 0.
---
 apps/bttester/src/btp_gatt_cl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apps/bttester/src/btp_gatt_cl.c b/apps/bttester/src/btp_gatt_cl.c
index 609d7e50..e4da8a3e 100644
--- a/apps/bttester/src/btp_gatt_cl.c
+++ b/apps/bttester/src/btp_gatt_cl.c
@@ -1392,6 +1392,7 @@ read_var_cb(uint16_t conn_handle,
         rp->data_length = 0;
         tester_event(BTP_SERVICE_ID_GATTC, BTP_GATTC_READ_MULTIPLE_VAR_RP,
                      rp, sizeof(*rp));
+        return 0;
     }
 
     for (int i = 0; i < num_attrs; i++) {

Reply via email to