summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRémy Oudompheng <remy@archlinux.org>2011-04-21 08:11:36 +0200
committerDan McGee <dan@archlinux.org>2011-04-21 12:14:23 -0500
commitdd7b17aa0a4d2b420f880710bde49773919f4e4c (patch)
tree85dc9ccb534334779ddc10894363b75e27eba564 /lib
parentada5bc1404098f644048477c8b6265060aaf1c98 (diff)
downloadpacman-dd7b17aa0a4d2b420f880710bde49773919f4e4c.tar.xz
handle.c: force sigverify level not to be PM_PGP_VERIFY_UNKNOWN
Signed-off-by: Rémy Oudompheng <remy@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/handle.c1
1 files changed, 1 insertions, 0 deletions
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;
}