From 7d75ea4787925f430766b0a69e4bc780d0b6099f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 23 Oct 2014 15:13:39 +0200 Subject: [PATCH] x509_crt_parse() did not increase total_failed on PEM error --- ChangeLog | 1 + library/x509parse.c | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog b/ChangeLog index b951c9a49..39a039a04 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,7 @@ Bugfix 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 40520110a..806dceab2 100644 --- a/library/x509parse.c +++ b/library/x509parse.c @@ -1490,6 +1490,7 @@ int x509parse_crt( x509_cert *chain, const unsigned char *buf, size_t buflen ) if( first_error == 0 ) first_error = ret; + total_failed++; continue; } else