From 1e6183200393c17687d981bf567f899fff40da61 Mon Sep 17 00:00:00 2001 From: job Date: Mon, 13 Mar 2023 15:50:40 +0000 Subject: [PATCH] Merge calling print_certification_path() into adjacent else branch OK tb@ --- usr.sbin/rpki-client/filemode.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/usr.sbin/rpki-client/filemode.c b/usr.sbin/rpki-client/filemode.c index 80b8b6dde71..033574d65e7 100644 --- a/usr.sbin/rpki-client/filemode.c +++ b/usr.sbin/rpki-client/filemode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: filemode.c,v 1.23 2023/03/13 13:42:01 job Exp $ */ +/* $OpenBSD: filemode.c,v 1.24 2023/03/13 15:50:40 job Exp $ */ /* * Copyright (c) 2019 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -483,15 +483,15 @@ proc_parser_file(char *file, unsigned char *buf, size_t len) printf(", %s", errstr); } } - - if ((outformats & FORMAT_JSON) == 0) - printf("\n"); - else if (status && aia != NULL) - print_certification_path(crl_uri, aia, a); if (outformats & FORMAT_JSON) printf("\"\n}\n"); else { + printf("\n"); + + if (status && aia != NULL) + print_certification_path(crl_uri, aia, a); + if (x509 == NULL) goto out; if (type == RTYPE_TAL || type == RTYPE_CRL) -- 2.20.1