diff options
author | José Bollo <jose.bollo@iot.bzh> | 2018-07-17 10:42:04 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2018-07-17 11:26:52 +0200 |
commit | f97f8d24a1971117bbd4057ca0cd00776bcccb39 (patch) | |
tree | a6176705a608d47e1c71ce42c6a56d205aba7497 | |
parent | 4d080df8c46a94b824ce31750ef58d69b8ea4b14 (diff) |
wgtpkg-digsig: Fix digital signature check
The compute of the return code was wrong: it always
returned 0 even in case of error.
Installation of a widget with an error in its signature
was possible due to this error.
Bug-AGL: SPEC-1590
Change-Id: Ibefd74aafd6a00dea32e52d471460cbe08a380ab
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/wgtpkg-digsig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wgtpkg-digsig.c b/src/wgtpkg-digsig.c index 4460bf2..a1cb55f 100644 --- a/src/wgtpkg-digsig.c +++ b/src/wgtpkg-digsig.c @@ -347,7 +347,7 @@ int check_all_signatures() for (i = n ; i-- > 0 ; ) { fdesc = signature_of_index(i); irc = verify_digsig(fdesc); - if (!irc) + if (irc < 0) rc = irc; } |