fix previous: a *mp = mft1 got lost
authortb <tb@openbsd.org>
Fri, 2 Feb 2024 18:22:45 +0000 (18:22 +0000)
committertb <tb@openbsd.org>
Fri, 2 Feb 2024 18:22:45 +0000 (18:22 +0000)
ok job

usr.sbin/rpki-client/parser.c

index b797154..09d65ae 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: parser.c,v 1.121 2024/02/02 18:11:12 job Exp $ */
+/*     $OpenBSD: parser.c,v 1.122 2024/02/02 18:22:45 tb Exp $ */
 /*
  * Copyright (c) 2019 Claudio Jeker <claudio@openbsd.org>
  * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -436,6 +436,7 @@ proc_parser_mft(struct entity *entp, struct mft **mp, char **crlfile,
                                            "with #%s from cache", file2,
                                            mft2->seqnum);
                        }
+                       *mp = mft1;
                } else {
                        /* XXX - preserve behavior; this is probably wrong. */
                        *mp = mft1;