Skip to content

Commit

Permalink
trust: Continue parsing if the file cannot be read as persist format
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ueno committed Jan 4, 2019
1 parent 4aa6ef9 commit 5e6a92b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trust/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down

0 comments on commit 5e6a92b

Please sign in to comment.