From 817d065c161dbfd2521a73448e285b5a04039a18 Mon Sep 17 00:00:00 2001 From: job Date: Mon, 13 Mar 2023 21:01:06 +0000 Subject: [PATCH] Don't lookup the signature path's expiry for trust anchor certs --- usr.sbin/rpki-client/filemode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/rpki-client/filemode.c b/usr.sbin/rpki-client/filemode.c index a0e12929211..25b7188ee81 100644 --- a/usr.sbin/rpki-client/filemode.c +++ b/usr.sbin/rpki-client/filemode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: filemode.c,v 1.27 2023/03/13 20:55:14 job Exp $ */ +/* $OpenBSD: filemode.c,v 1.28 2023/03/13 21:01:06 job Exp $ */ /* * Copyright (c) 2019 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -464,7 +464,7 @@ proc_parser_file(char *file, unsigned char *buf, size_t len) cert = ta_parse(file, cert, tal->pkey, tal->pkeysz); status = (cert != NULL); if (outformats & FORMAT_JSON) - printf("\n\t\"tal\": \"%s\",\n", tal->descr); + printf("\t\"tal\": \"%s\",\n", tal->descr); else printf("TAL: %s\n", tal->descr); @@ -477,7 +477,7 @@ proc_parser_file(char *file, unsigned char *buf, size_t len) } if (expires != NULL) { - if (status) + if (status && aia != NULL) *expires = x509_find_expires(*notafter, a, &crlt); switch (type) { -- 2.20.1