x509_crt_parse() did not increase total_failed on PEM error
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