Explorar el Código

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

Daniel Pouzzner hace 5 meses
padre
commit
092dba4593
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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) {