From 128a456e775edf393d47e40bb9ae8b62434e2978 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Sun, 18 Oct 2015 19:08:18 +0200 Subject: [PATCH] g10: Fix assert. * g10/tofu.c (get_trust): Fix assert. -- Signed-off-by: Neal H. Walfield . --- g10/tofu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {