g10: Fix assert.
authorNeal H. Walfield <neal@g10code.com>
Sun, 18 Oct 2015 17:08:18 +0000 (19:08 +0200)
committerNeal H. Walfield <neal@g10code.com>
Sun, 18 Oct 2015 17:08:18 +0000 (19:08 +0200)
* g10/tofu.c (get_trust): Fix assert.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>.
g10/tofu.c

index 39377cb..b8705d7 100644 (file)
@@ -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)
                  {