From 99fa1fb797995fb5857f7604f90033b08ebf430c Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Mon, 23 Aug 2021 15:17:11 +0300 Subject: trust: always use have valid struct apk_trust * Make sure we always have valid struct apk_trust * for code using it. Load the signing keys directly when being specified to produce sane error message if loading them fails. --- src/adb.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/adb.c') diff --git a/src/adb.c b/src/adb.c index 53a82cd..5607af6 100644 --- a/src/adb.c +++ b/src/adb.c @@ -1103,8 +1103,6 @@ int adb_trust_write_signatures(struct apk_trust *trust, struct adb *db, struct a size_t siglen; int r; - if (IS_ERR(trust)) return PTR_ERR(trust); - if (!vfy) { vfy = alloca(sizeof *vfy); memset(vfy, 0, sizeof *vfy); -- cgit v1.2.3-70-g09d2