From 0eefa80d74ab9e251dd0e067ee29c5e254a0e2db Mon Sep 17 00:00:00 2001 From: Kaleb Himes Date: Fri, 18 Oct 2019 11:30:08 -0600 Subject: [PATCH] initialize max pathlen to preserve ASN no signer error --- wolfcrypt/src/asn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index e84cf0d02..bf05cdedb 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -4455,6 +4455,7 @@ void InitDecodedCert(DecodedCert* cert, cert->source = source; /* don't own */ cert->maxIdx = inSz; /* can't go over this index */ cert->heap = heap; + cert->maxPathLen = WOLFSSL_MAX_PATH_LEN; #ifdef WOLFSSL_CERT_GEN cert->subjectSNEnc = CTC_UTF8; cert->subjectCEnc = CTC_PRINTABLE;