From: tb Date: Fri, 29 Dec 2023 17:15:10 +0000 (+0000) Subject: Pass correct file to warnx() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3360cec313a16da56788a419042560c71b9476b3;p=openbsd 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 --- 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 * Copyright (c) 2019 Kristaps Dzonsons @@ -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); } }