projects
/
oweals
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
opkg: add some extra error checks to opkg_verify_file()
[oweals/opkg-lede.git]
/
libopkg
/
opkg_download.c
diff --git
a/libopkg/opkg_download.c
b/libopkg/opkg_download.c
index 428cad5ff82c54caab4c9a808dfe9f5f4c4c054a..6acdc326f2e6a12c217a37e19e7683e54884a2f7 100644
(file)
--- a/
libopkg/opkg_download.c
+++ b/
libopkg/opkg_download.c
@@
-252,8
+252,12
@@
opkg_verify_file (opkg_conf_t *conf, char *text_file, char *sig_file)
return -1;
err = gpgme_op_verify (ctx, sig, text, NULL);
+ if (err)
+ return -1;
result = gpgme_op_verify_result (ctx);
+ if (!result)
+ return -1;
/* see if any of the signitures matched */
s = result->signatures;