Turns out filemode still relies on these. Rather than adding to the
spaghetti in filemode.c, begrudgingly put back the NULL checks with
an additional XXX.
ok claudio job
-/* $OpenBSD: crl.c,v 1.41 2024/06/12 10:03:09 tb Exp $ */
+/* $OpenBSD: crl.c,v 1.42 2024/06/17 18:52:50 tb Exp $ */
/*
* Copyright (c) 2024 Theo Buehler <tb@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
{
struct crl find;
+ /* XXX - this should be removed, but filemode relies on it. */
+ if (a == NULL)
+ return NULL;
+
find.aki = a->cert->ski;
find.mftpath = a->cert->mft;
-/* $OpenBSD: validate.c,v 1.75 2024/06/12 10:03:09 tb Exp $ */
+/* $OpenBSD: validate.c,v 1.76 2024/06/17 18:52:50 tb Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
*intermediates = NULL;
*root = NULL;
+ /* XXX - this should be removed, but filemode relies on it. */
+ if (a == NULL)
+ return;
+
if ((*intermediates = sk_X509_new_null()) == NULL)
err(1, "sk_X509_new_null");
if ((*root = sk_X509_new_null()) == NULL)