From: claudio Date: Tue, 3 Sep 2024 13:31:31 +0000 (+0000) Subject: In rrdp_session_parse() set the last_reset time to now if the .state file X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=dbcd1c314468e7ea6cab33211202845830473fd6;p=openbsd In rrdp_session_parse() set the last_reset time to now if the .state file does not exist. OK tb@ --- 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);