diff options
author | Daiki Ueno <dueno@redhat.com> | 2018-12-25 08:32:19 +0100 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2019-01-04 15:12:04 +0100 |
commit | 5e6a92b67ddade14a54769b05cc717043bc56b78 (patch) | |
tree | 4a243d6f1df87aa7085394f6963cf3f1b49d4a90 | |
parent | 4aa6ef9e82f6bb14746a47a7d56789d5e982a1f5 (diff) |
trust: Continue parsing if the file cannot be read as persist format
A corrupted file that contains "[p11-kit-object-v1]" can be a valid
PEM certs file. Continue with the next format if it cannot be read as
a persistent format.
-rw-r--r-- | trust/parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trust/parser.c b/trust/parser.c index e912c3a..e84e47c 100644 --- a/trust/parser.c +++ b/trust/parser.c @@ -639,7 +639,7 @@ p11_parser_format_persist (p11_parser *parser, } p11_array_free (objects); - return ret ? P11_PARSE_SUCCESS : P11_PARSE_FAILURE; + return ret ? P11_PARSE_SUCCESS : P11_PARSE_UNRECOGNIZED; } p11_parser * |