From 7d96e163a41fa74c213f6bddd77fd5e179eed888 Mon Sep 17 00:00:00 2001 From: tb Date: Mon, 8 Jan 2024 19:46:19 +0000 Subject: [PATCH] Only use DIR_VALID in noop mode Looking in DIR_TEMP will not find a file, resulting in lots of ugly printf (null). This is another bandaid until I figure out how to fix my fix for this function... with/ok job --- usr.sbin/rpki-client/parser.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/usr.sbin/rpki-client/parser.c b/usr.sbin/rpki-client/parser.c index f02146d45c8..cfa9ed254ce 100644 --- a/usr.sbin/rpki-client/parser.c +++ b/usr.sbin/rpki-client/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.106 2023/12/29 17:15:10 tb Exp $ */ +/* $OpenBSD: parser.c,v 1.107 2024/01/08 19:46:19 tb Exp $ */ /* * Copyright (c) 2019 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -38,6 +38,8 @@ #include "extern.h" +extern int noop; + static X509_STORE_CTX *ctx; static struct auth_tree auths = RB_INITIALIZER(&auths); static struct crl_tree crlt = RB_INITIALIZER(&crlt); @@ -390,7 +392,7 @@ proc_parser_mft(struct entity *entp, struct mft **mp, char **crlfile, warnx("%s: manifest misissuance, #%s was recycled", file1, mft1->seqnum); - if (r == 1) { + if (!noop && r == 1) { *mp = proc_parser_mft_post(file1, mft1, entp->path, err1, &warned); if (*mp == NULL) { -- 2.20.1