Fix for wae_initializer 54/103254/1
authorBartlomiej Kunikowski <b.kunikowski@partner.samsung.com>
Mon, 5 Dec 2016 07:49:59 +0000 (08:49 +0100)
committerKyungwook Tak <k.tak@samsung.com>
Thu, 8 Dec 2016 00:08:11 +0000 (09:08 +0900)
There is a bug in if statement, it don't allow to properly work
of this initializer if there are no --reload flag.

Other way to do it is simply use wae_initializer always as it
is with --reload flag.

Change-Id: I9622373c914f8c0f1f22d3f810417251cced81ba
Signed-off-by: Bartlomiej Kunikowski <b.kunikowski@partner.samsung.com>
(cherry picked from commit 1fcac8945420537f89d24a0e8e52ec99cc432674)

srcs/key_handler.c

index 4607fdd274b1ed0d8d1130b2ed662bbeceea3075..905538e578acf0bdb2833cf88cec7ec62d3b9bb1 100644 (file)
@@ -539,8 +539,8 @@ int load_preloaded_app_deks(bool reload)
                // check if all deks were already loaded into key-manager.
                ret = is_app_deks_loaded_in_key_manager();
 
-               if (ret == WAE_ERROR_NONE)
-                       return ret;
+               if (ret == true)
+                       return WAE_ERROR_NONE;
        }
 
        raw_buffer_s *prikey = NULL;