aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-07-21 16:22:18 +0000
committerJustus Winter <[email protected]>2016-07-21 16:22:18 +0000
commit45bb9a2a46e11bc13c6b39e7b4748b7de199018e (patch)
tree02721c51fd14d2f1fe97f74cfd5804f7c67a4e0a
parentg10: Drop superfluous begin transaction. (diff)
downloadgnupg-45bb9a2a46e11bc13c6b39e7b4748b7de199018e.tar.gz
gnupg-45bb9a2a46e11bc13c6b39e7b4748b7de199018e.zip
g10: Fix error handling.
* g10/tofu.c (show_statistics): Fix error handling, 0 is a valid duration. Signed-off-by: Justus Winter <[email protected]>
-rw-r--r--g10/tofu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/tofu.c b/g10/tofu.c
index 847c023f4..a2732ff63 100644
--- a/g10/tofu.c
+++ b/g10/tofu.c
@@ -2504,12 +2504,12 @@ show_statistics (tofu_dbs_t dbs, const char *fingerprint,
}
else
{
- string_to_long (&first_seen_ago, strlist->next->d, 0, __LINE__);
- string_to_long (&most_recent_seen_ago, strlist->next->next->d, 0,
+ string_to_long (&first_seen_ago, strlist->next->d, -1, __LINE__);
+ string_to_long (&most_recent_seen_ago, strlist->next->next->d, -1,
__LINE__);
}
- if (messages == -1 || first_seen_ago == 0)
+ if (messages == -1 || first_seen_ago == -1)
{
write_stats_status (0, TOFU_POLICY_NONE, -1, -1);
log_info (_("Failed to collect signature statistics for \"%s\"\n"