mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
g10: Fix error handling.
* g10/tofu.c (show_statistics): Fix error handling, 0 is a valid duration. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
8a6f8e1e39
commit
45bb9a2a46
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user