diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2020-11-06 04:22:19 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2020-11-06 04:22:19 +0000 |
commit | 64dbc44391bbf0e328d26192e74a9df72c48c383 (patch) | |
tree | fc0f76e31e64fe75a13c6bd4c9bbc2e2f968ba2f /sys/dev/usb/udl.h | |
parent | 0e0ad22b8c64938b4d54f5d30b370d495c1cdb84 (diff) |
Treat stale manifests as such, not as 'failed to parse'
There is currently dead code in mft_parse() that handles stale
manifests by setting the stale flag and removing all files they
reference. This code was made unreachable in a refactor that
fixed a logic error that made mft_parse() succeed despite its
error handling. check_validity() returns three possible values.
Report failures and stale mfts back immediately via rc. Success
needs to reset rc to -1, so subsequent errors are reported as
such.
This is mostly cosmetic and only changes the rpki-client output
in that the comment at the top of the config now actually shows
stale manifests. This makes regress pass again.
ok claudio job
Diffstat (limited to 'sys/dev/usb/udl.h')
0 files changed, 0 insertions, 0 deletions