From: claudio Date: Wed, 2 Feb 2022 15:13:00 +0000 (+0000) Subject: When a RRDP fetch failed not only clear the filesystem but also flush X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ffe0cd6846d9903fac6c4479ff121b58fc4cdcc1;p=openbsd When a RRDP fetch failed not only clear the filesystem but also flush the to delete list stored this RRDP node. Noticed by Job on console.rpki-client.org with the help of idnic.net OK tb@ --- diff --git a/usr.sbin/rpki-client/repo.c b/usr.sbin/rpki-client/repo.c index fe4c2a1606f..32de2edad4a 100644 --- a/usr.sbin/rpki-client/repo.c +++ b/usr.sbin/rpki-client/repo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: repo.c,v 1.29 2022/01/28 14:11:27 claudio Exp $ */ +/* $OpenBSD: repo.c,v 1.30 2022/02/02 15:13:00 claudio Exp $ */ /* * Copyright (c) 2021 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -944,6 +944,8 @@ rrdp_finish(unsigned int id, int ok) rr->state = REPO_FAILED; /* clear the RRDP repo since it failed */ remove_contents(rr->basedir); + /* also clear the list of deleted files */ + filepath_free(&rr->deleted); } repo_done(rr, ok);