From 411edb060400acabee2a7179a9e63b77e1af8d41 Mon Sep 17 00:00:00 2001 From: job Date: Mon, 30 Aug 2021 16:05:55 +0000 Subject: [PATCH] Properly account entity_queue when the file has already been seen Thanks to Ben Maddison for helping create a test case OK claudio@ --- usr.sbin/rpki-client/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c index fdd99103281..ff6713d6296 100644 --- a/usr.sbin/rpki-client/main.c +++ b/usr.sbin/rpki-client/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.144 2021/06/29 17:43:57 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.145 2021/08/30 16:05:55 job Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * @@ -122,6 +122,7 @@ entity_write_req(const struct entity *ent) if (filepath_add(&fpt, ent->file) == 0) { warnx("%s: File already visited", ent->file); + entity_queue--; return; } -- 2.20.1