Browse Source

ASN template debug compile error

Variable is length instead of len.
Sean Parkinson 1 month ago
parent
commit
b62e8c1467
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wolfcrypt/src/asn.c

+ 1 - 1
wolfcrypt/src/asn.c

@@ -1203,7 +1203,7 @@ static int GetASN_ObjectId(const byte* input, word32 idx, int length)
     /* OID data must be at least 3 bytes. */
     if (length < 3) {
     #ifdef WOLFSSL_DEBUG_ASN_TEMPLATE
-        WOLFSSL_MSG_VSNPRINTF("OID length must be 3 or more: %d", len);
+        WOLFSSL_MSG_VSNPRINTF("OID length must be 3 or more: %d", length);
     #else
         WOLFSSL_MSG("OID length less than 3");
     #endif