r4412 - trunk/src/target/opkg/libopkg
thomas at docs.openmoko.org
thomas at docs.openmoko.org
Thu May 1 13:38:32 CEST 2008
Author: thomas
Date: 2008-05-01 13:38:31 +0200 (Thu, 01 May 2008)
New Revision: 4412
Modified:
trunk/src/target/opkg/libopkg/opkg_download.c
Log:
opkg: add some extra error checks to opkg_verify_file()
Modified: trunk/src/target/opkg/libopkg/opkg_download.c
===================================================================
--- trunk/src/target/opkg/libopkg/opkg_download.c 2008-04-30 22:05:16 UTC (rev 4411)
+++ trunk/src/target/opkg/libopkg/opkg_download.c 2008-05-01 11:38:31 UTC (rev 4412)
@@ -252,8 +252,12 @@
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;
More information about the commitlog
mailing list