Fixes bug where the att_db would not be updated if realloc returnes a new chunk of memory.

This commit is contained in:
Jakob Krantz 2018-01-09 10:36:13 +01:00 committed by Matthias Ringwald
parent bb44f0f585
commit 658d4117be

View File

@ -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");