Browse Source

wolfcrypt/src/asn.c: fix for benign identicalInnerCondition in ParseCertRelative().

Daniel Pouzzner 5 months ago
parent
commit
092dba4593
1 changed files with 2 additions and 2 deletions
  1. 2 2
      wolfcrypt/src/asn.c

+ 2 - 2
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) {