x509_crt_parse() did not increase total_failed on PEM error
diff --git a/ChangeLog b/ChangeLog
index b951c9a..39a039a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,7 @@
Vialletelle).
* ssl_close_notify() could send more than one message in some circumstances
with non-blocking I/O.
+ * x509_crt_parse() did not increase total_failed on PEM error
Changes
* X.509 certificates with more than one AttributeTypeAndValue per
diff --git a/library/x509parse.c b/library/x509parse.c
index 4052011..806dcea 100644
--- a/library/x509parse.c
+++ b/library/x509parse.c
@@ -1490,6 +1490,7 @@
if( first_error == 0 )
first_error = ret;
+ total_failed++;
continue;
}
else