From 658d4117be3d7bdb916d9ace524457340223359a Mon Sep 17 00:00:00 2001 From: Jakob Krantz Date: Tue, 9 Jan 2018 10:36:13 +0100 Subject: [PATCH] Fixes bug where the att_db would not be updated if realloc returnes a new chunk of memory. --- src/ble/att_db_util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ble/att_db_util.c b/src/ble/att_db_util.c index f9202f6bd..8a78519ba 100644 --- a/src/ble/att_db_util.c +++ b/src/ble/att_db_util.c @@ -96,6 +96,7 @@ static int att_db_util_assert_space(uint16_t size){ } att_db = new_db; att_db_max_size = new_size; + att_set_db(att_db); // Update att_db with the new db return 1; #else log_error("att_db: out of memory");