security: Remove meaningless double check 99/278199/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:58:44 +0000 (14:58 +0900)
commit73292cd943a431496e4b05f618d7e8529c089ae5
tree382505007e86e26d4128ad3e33eda0a6c0f22223
parent57b204030d832866d60c8c10613ebafe2d494796
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: I24755e5b86c5e1f4bf5cf6333a4d4686a880e942
src/libds-tizen/util/security.c