From 4f3c55988ba04c45d749f9f43ccb096be1bd47cf Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Wed, 15 Sep 2021 12:50:04 -0400 Subject: [PATCH] We were ignoring the last character of the group name. --- src/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index 26bfa28b7..9f1d5eff1 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -49189,7 +49189,7 @@ int wolfSSL_CTX_set1_curves_list(WOLFSSL_CTX* ctx, const char* names) if (names[idx] != ':' && names[idx] != '\0') continue; - len = idx - 1 - start; + len = idx - start; if (len > MAX_CURVE_NAME_SZ - 1) return WOLFSSL_FAILURE;