security: Remove meaningless double check 85/278085/1
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 2 Jun 2022 04:14:29 +0000 (13:14 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 18 Jul 2022 05:08:40 +0000 (14:08 +0900)
commit7eac7a77a9cefbc6b6a82875ff89de69c3c78b04
treef4f8e4121c5cc221718df417279f35e4142cebfc
parent3909f200f7443473f4810a00de45125ee1f67549
security: Remove meaningless double check

In the function tizen_security_check_privilege(), it double-checks
a g_cynara to see if it exists and then return different value if it
doesn't exist which is contradictory.

Let's just return false if initializing the cynara has been failed
or not been initialized.

Change-Id: If141f0e9bcc75ee0804cfa65bb136121d4d23fcc
src/libds-tizen/util/security.c