aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-10-18 17:08:18 +0000
committerNeal H. Walfield <[email protected]>2015-10-18 17:08:18 +0000
commit128a456e775edf393d47e40bb9ae8b62434e2978 (patch)
treeda9ac4d3f900fc15d0f6fa797d597f97af3edf9a
parentg10: Add TOFU support. (diff)
downloadgnupg-128a456e775edf393d47e40bb9ae8b62434e2978.tar.gz
gnupg-128a456e775edf393d47e40bb9ae8b62434e2978.zip
g10: Fix assert.
* g10/tofu.c (get_trust): Fix assert. -- Signed-off-by: Neal H. Walfield <[email protected]>.
-rw-r--r--g10/tofu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/tofu.c b/g10/tofu.c
index 39377cb14..b8705d7b7 100644
--- a/g10/tofu.c
+++ b/g10/tofu.c
@@ -1676,7 +1676,7 @@ get_trust (struct db *dbs, const char *fingerprint, const char *email,
if (choice)
{
int c = ((size_t) choice - (size_t) choices) / 2;
- assert (0 <= c && c <= 3);
+ assert (0 <= c && c <= 4);
switch (c)
{