From 12f86b020a0a43c56a5c147c689aa2412742f66b Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Wed, 20 Oct 2021 17:13:34 -0600 Subject: [PATCH] clean up test case memory and common name size --- tests/api.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/api.c b/tests/api.c index 0075cbb79..dd2ecbace 100644 --- a/tests/api.c +++ b/tests/api.c @@ -2090,7 +2090,7 @@ static void test_wolfSSL_CertManagerNameConstraint4(void) AssertIntEQ(X509_NAME_add_entry_by_txt(name, "countryName", MBSTRING_UTF8, (byte*)"US", 2, -1, 0), SSL_SUCCESS); AssertIntEQ(X509_NAME_add_entry_by_txt(name, "commonName", MBSTRING_UTF8, - (byte*)"common", 11, -1, 0), SSL_SUCCESS); + (byte*)"common", 6, -1, 0), SSL_SUCCESS); AssertIntEQ(wolfSSL_X509_set_subject_name(x509, name), WOLFSSL_SUCCESS); X509_NAME_free(name); @@ -2278,7 +2278,6 @@ static void test_wolfSSL_CertManagerNameConstraint5(void) wolfSSL_X509_free(x509); wolfSSL_CertManagerFree(cm); - wolfSSL_X509_free(x509); wolfSSL_X509_free(ca); wolfSSL_EVP_PKEY_free(priv); #endif