diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index de576c634..abb849d83 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -23813,10 +23813,10 @@ int ParseCertRelative(DecodedCert* cert, int type, int verify, void* cm) DYNAMIC_TYPE_DCERT); if (der == NULL) { ret = MEMORY_E; - } + } else #endif /* ! WOLFSSL_SMALL_STACK */ - if (ret == 0) { + { ret = wc_GeneratePreTBS(cert, der, MAX_CERT_VERIFY_SZ); if (ret > 0) {