From a23e5c84eab87b76e33f05ffa4d785607fecf909 Mon Sep 17 00:00:00 2001 From: Piotr Narajowski Date: Mon, 3 Jun 2024 14:10:21 +0200 Subject: [PATCH] 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 609d7e504c..e4da8a3eaa 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++) {