From 7e6079219b2218f4c3f52521f4a2c521049d961a Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 30 Apr 2024 09:18:45 -0400 Subject: [PATCH] gatt-database: Fix matching ImproperlyConfigured error Condition for ImproperlyConfigured error was not checking it correctly. --- src/gatt-database.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gatt-database.c b/src/gatt-database.c index d028ce012..567c8d5c1 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) -- 2.47.3