This aligns the mft2 case with mft1. There's still a bunch of cleanup
needed in here, but the logic seems to converge to something mere mortals
can follow.
ok job
-/* $OpenBSD: parser.c,v 1.126 2024/02/02 22:09:56 tb Exp $ */
+/* $OpenBSD: parser.c,v 1.127 2024/02/03 11:27:55 tb Exp $ */
/*
* Copyright (c) 2019 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
warnx("%s: failed fetch, continuing with #%s "
"from cache", file2, mft2->seqnum);
- if (proc_parser_mft_check(file2, mft2)) {
- *mp = mft2;
- } else {
+ if (!proc_parser_mft_check(file2, mft2)) {
mft_free(mft2);
mft2 = NULL;
free(crl1file);
free(file1);
+ *mp = mft2;
crl = crl2;
file = file2;
*crlfile = crl2file;