From 9efcb91aed4e7365aa945fc9c6ffe2d111ca1496 Mon Sep 17 00:00:00 2001 From: Bartlomiej Kunikowski Date: Mon, 5 Dec 2016 08:49:59 +0100 Subject: [PATCH] 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 (cherry picked from commit 1fcac8945420537f89d24a0e8e52ec99cc432674) --- srcs/key_handler.c | 4 ++-- 1 file 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; -- 2.7.4