summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartlomiej Kunikowski <b.kunikowski@partner.samsung.com>2016-12-05 08:49:59 +0100
committerKyungwook Tak <k.tak@samsung.com>2016-12-08 09:08:11 +0900
commit9efcb91aed4e7365aa945fc9c6ffe2d111ca1496 (patch)
treebb3eaf44d0c5b54f4cc8c2f0ccb223979a8e704b
parent0778e0964f8fecd8ce06c307eddc2ccf1632fc2b (diff)
downloadlibwebappenc-9efcb91aed4e7365aa945fc9c6ffe2d111ca1496.tar.gz
libwebappenc-9efcb91aed4e7365aa945fc9c6ffe2d111ca1496.tar.bz2
libwebappenc-9efcb91aed4e7365aa945fc9c6ffe2d111ca1496.zip
Fix for wae_initializer
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)
-rw-r--r--srcs/key_handler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/srcs/key_handler.c b/srcs/key_handler.c
index 4607fdd..905538e 100644
--- a/srcs/key_handler.c
+++ b/srcs/key_handler.c
@@ -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;