mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-01-08 07:28:58 +01:00
x509_crt_parse() did not increase total_failed on PEM error
Result was that PEM errors in files with multiple certificates were not detectable by the user.
This commit is contained in:
parent
9e4ff953de
commit
5a5fa92bfe
6 changed files with 123 additions and 0 deletions
|
|
@ -898,6 +898,7 @@ int x509_crt_parse( x509_crt *chain, const unsigned char *buf, size_t buflen )
|
|||
if( first_error == 0 )
|
||||
first_error = ret;
|
||||
|
||||
total_failed++;
|
||||
continue;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue