summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-12-29 17:15:11 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-12-29 17:15:11 +0000
commit16cc32341c1167f0e59d4ed6bb8e9b810b1be51a (patch)
treee3015fc7a5b5665b500778e9c0db8954f96296b1 /usr.sbin/rpki-client
parent5c4bd98b36b11b907860978c7e2caa35092a897e (diff)
Pass correct file to warnx()
We end up here only if mft1 == NULL, which can happen because file1 == NULL. Use file2 instead because mft2 != NULL implies file2 != NULL. ok job
Diffstat (limited to 'usr.sbin/rpki-client')
-rw-r--r--usr.sbin/rpki-client/parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rpki-client/parser.c b/usr.sbin/rpki-client/parser.c
index 47dc421bd5d..f02146d45c8 100644
--- a/usr.sbin/rpki-client/parser.c
+++ b/usr.sbin/rpki-client/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.105 2023/12/29 14:35:43 job Exp $ */
+/* $OpenBSD: parser.c,v 1.106 2023/12/29 17:15:10 tb Exp $ */
/*
* Copyright (c) 2019 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -397,7 +397,7 @@ proc_parser_mft(struct entity *entp, struct mft **mp, char **crlfile,
mft1 = NULL;
if (mft2 != NULL)
warnx("%s: failed fetch, continuing with #%s"
- " from cache", file1, mft2->seqnum);
+ " from cache", file2, mft2->seqnum);
}
}