We were ignoring the last character of the group name.

This commit is contained in:
Anthony Hu
2021-09-15 12:50:04 -04:00
parent 5e3f7d8778
commit 4f3c55988b

View File

@ -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;