Diff between d2a2aabee646c4e95655bc5dc93c323efa5fc588 and 7e6079219b2218f4c3f52521f4a2c521049d961a

Changed Files

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

Full Patch

diff --git a/src/gatt-database.c b/src/gatt-database.c
index d028ce0..567c8d5 100644
--- a/src/gatt-database.c
+++ b/src/gatt-database.c
@@ -2248,7 +2248,7 @@ static uint8_t dbus_error_to_att_ecode(const char *name, const char *msg,
 	if (strcmp(name, ERROR_INTERFACE ".InProgress") == 0)
 		return BT_ERROR_ALREADY_IN_PROGRESS;
 
-	if (strcmp(name, ERROR_INTERFACE ".ImproperlyConfigured"))
+	if (!strcmp(name, ERROR_INTERFACE ".ImproperlyConfigured"))
 		return BT_ERROR_CCC_IMPROPERLY_CONFIGURED;
 
 	if (strcmp(name, ERROR_INTERFACE ".NotPermitted") == 0)