In case the TAL of a self-signed is unavailable, cert would be freed but
we'd still hold a reference to its expired time in expires, so invalidate
that pointer as well.
Found by, initial fix and ok job
-/* $OpenBSD: filemode.c,v 1.30 2023/04/26 16:32:41 claudio Exp $ */
+/* $OpenBSD: filemode.c,v 1.31 2023/05/03 10:22:30 tb Exp $ */
/*
* Copyright (c) 2019 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
} else {
cert_free(cert);
cert = NULL;
+ expires = NULL;
status = 0;
}
}