-/* $OpenBSD: filemode.c,v 1.47 2024/06/17 18:54:36 tb Exp $ */
+/* $OpenBSD: filemode.c,v 1.48 2024/07/25 08:44:39 tb Exp $ */
/*
* Copyright (c) 2019 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
{
if (crl != NULL)
printf("Signature path: %s\n", crl);
- if (a->cert->mft != NULL)
+ if (a != NULL && a->cert != NULL && a->cert->mft != NULL)
printf(" %s\n", a->cert->mft);
if (aia != NULL)
printf(" %s\n", aia);
char *aia = NULL;
char *crl_uri = NULL;
time_t *expires = NULL, *notafter = NULL;
- struct auth *a;
+ struct auth *a = NULL;
struct crl *c;
const char *errstr = NULL, *valid;
int status = 0;
else {
printf("\n");
- if (status && aia != NULL) {
+ if (aia != NULL && status) {
print_signature_path(crl_uri, aia, a);
if (expires != NULL)
printf("Signature path expires: %s\n",