From dbcd1c314468e7ea6cab33211202845830473fd6 Mon Sep 17 00:00:00 2001 From: claudio Date: Tue, 3 Sep 2024 13:31:31 +0000 Subject: [PATCH] In rrdp_session_parse() set the last_reset time to now if the .state file does not exist. OK tb@ --- usr.sbin/rpki-client/repo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/rpki-client/repo.c b/usr.sbin/rpki-client/repo.c index 731d51cda9f..064d8d0b717 100644 --- a/usr.sbin/rpki-client/repo.c +++ b/usr.sbin/rpki-client/repo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: repo.c,v 1.64 2024/08/29 09:54:13 job Exp $ */ +/* $OpenBSD: repo.c,v 1.65 2024/09/03 13:31:31 claudio Exp $ */ /* * Copyright (c) 2021 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -673,6 +673,7 @@ rrdp_session_parse(struct rrdprepo *rr) if (errno != ENOENT) warn("%s: open state file", rr->basedir); free(file); + rr->last_reset = now; return state; } free(file); -- 2.20.1