Преглед изворни кода

Merge pull request #7488 from SparkiDev/asn_template_debug_fix

Asn template debug fix
Daniel Pouzzner пре 3 недеља
родитељ
комит
2335eb6bc6
1 измењених фајлова са 1 додато и 1 уклоњено
  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