Diff between 161691ae36196604195e4615c387ebfbf7235da3 and ed63d7e5a9f6caff820745de657bea6faad8e6ee

Changed Files

File Additions Deletions Status
src/gatt-database.c +2 -4 modified

Full Patch

diff --git a/src/gatt-database.c b/src/gatt-database.c
index 4af9b81..61eed71 100644
--- a/src/gatt-database.c
+++ b/src/gatt-database.c
@@ -2026,8 +2026,7 @@ static void desc_write_cb(struct gatt_db_attribute *attrib,
 		return;
 
 fail:
-	gatt_db_attribute_read_result(attrib, id, BT_ATT_ERROR_UNLIKELY,
-								NULL, 0);
+	gatt_db_attribute_write_result(attrib, id, BT_ATT_ERROR_UNLIKELY);
 }
 
 static bool database_add_desc(struct external_service *service,
@@ -2113,8 +2112,7 @@ static void chrc_write_cb(struct gatt_db_attribute *attrib,
 		return;
 
 fail:
-	gatt_db_attribute_read_result(attrib, id, BT_ATT_ERROR_UNLIKELY,
-								NULL, 0);
+	gatt_db_attribute_write_result(attrib, id, BT_ATT_ERROR_UNLIKELY);
 }
 
 static bool database_add_chrc(struct external_service *service,