Fix a use-after-free in filemode
authortb <tb@openbsd.org>
Wed, 3 May 2023 10:22:30 +0000 (10:22 +0000)
committertb <tb@openbsd.org>
Wed, 3 May 2023 10:22:30 +0000 (10:22 +0000)
commitc5ff1c048c473018d13479e31f553026cc4c7a49
tree6be4d28f6b5c8919cbf81a094a76b38812758d8d
parentb1f572183737486be9bb44de5c79751a57635a39
Fix a use-after-free in filemode

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
usr.sbin/rpki-client/filemode.c