privilege: do not compare the return value of cynara_check() with the wrong value 73/162673/1
authorSegwon <segwon.han@samsung.com>
Tue, 5 Dec 2017 01:42:09 +0000 (10:42 +0900)
committerSegwon <segwon.han@samsung.com>
Tue, 5 Dec 2017 01:42:09 +0000 (10:42 +0900)
Change-Id: I8876914aef668d25d6f3e0e3f65910d37ad8ac74
Signed-off-by: Segwon <segwon.han@samsung.com>
src/util/peripheral_privilege.c

index cfc7bd7db761881a1341d5193c17e57369b859bb..ce6b5f92641055d5b2c949cebfeb9a67c853e532 100644 (file)
@@ -86,7 +86,7 @@ int peripheral_privilege_check(GDBusMethodInvocation *invocation, GDBusConnectio
        }
 
        ret = cynara_check(__cynara, client, session, user, PERIPHERAL_PRIVILEGE);
-       if (ret != 0) {
+       if (ret != CYNARA_API_ACCESS_ALLOWED) {
                _E("Failed to check privilege");
                g_free(session);
                g_free(client);