From: job Date: Mon, 30 Aug 2021 16:05:55 +0000 (+0000) Subject: Properly account entity_queue when the file has already been seen X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=411edb060400acabee2a7179a9e63b77e1af8d41;p=openbsd Properly account entity_queue when the file has already been seen Thanks to Ben Maddison for helping create a test case OK claudio@ --- 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; }