diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-02-02 15:13:01 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-02-02 15:13:01 +0000 |
commit | fd85a54b6f3fed650d910e6ee15f46992dfe9de2 (patch) | |
tree | 9f43cec69cb2f0e21a68db2279410597c3aa76ae | |
parent | 1ffd2d54a5d3d467a356018594a9d852fd5e2079 (diff) |
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@
-rw-r--r-- | usr.sbin/rpki-client/repo.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <claudio@openbsd.org> * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> @@ -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); |