fix(nimble): Updating the count parameter when fetching gatt db

This commit is contained in:
Astha Verma
2025-07-30 11:29:45 +05:30
parent 9d164c2b1b
commit d4e8e43b26
+1
View File
@@ -3528,6 +3528,7 @@ int ble_gattc_get_db(uint16_t conn_handle,
return BLE_ATT_ERR_ATTR_NOT_FOUND;
}
if (db) {
*count = num;
memcpy(result, db, num * sizeof(ble_gattc_db_elem_t)); // Copy data
free(db); // Free allocated memory
}