From dd7b17aa0a4d2b420f880710bde49773919f4e4c Mon Sep 17 00:00:00 2001 From: Rémy Oudompheng Date: Thu, 21 Apr 2011 08:11:36 +0200 Subject: handle.c: force sigverify level not to be PM_PGP_VERIFY_UNKNOWN MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémy Oudompheng Signed-off-by: Dan McGee --- lib/libalpm/handle.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c index 6905ca69..6bc5f27e 100644 --- a/lib/libalpm/handle.c +++ b/lib/libalpm/handle.c @@ -628,6 +628,7 @@ int SYMEXPORT alpm_option_set_checkspace(int checkspace) int SYMEXPORT alpm_option_set_default_sigverify(pgp_verify_t level) { ASSERT(handle != NULL, RET_ERR(PM_ERR_HANDLE_NULL, -1)); + ASSERT(level != PM_PGP_VERIFY_UNKNOWN, RET_ERR(PM_ERR_WRONG_ARGS, -1)); handle->sigverify = level; return 0; } -- cgit v1.2.3-70-g09d2