Merge pull request #9055 from rlm2002/zd20212

Coverity changes
This commit is contained in:
JacobBarthelmeh
2025-08-04 10:34:29 -06:00
committed by GitHub

View File

@@ -5285,7 +5285,8 @@ static int tlsx_ffdhe_find_group(WOLFSSL* ssl, SupportedCurve* clientGroup,
if (serverGroup->name != group->name) if (serverGroup->name != group->name)
continue; continue;
wc_DhGetNamedKeyParamSize(serverGroup->name, &p_len, NULL, NULL); ret = wc_DhGetNamedKeyParamSize(serverGroup->name, &p_len, NULL, NULL);
if (ret == 0) {
if (p_len == 0) { if (p_len == 0) {
ret = BAD_FUNC_ARG; ret = BAD_FUNC_ARG;
break; break;
@@ -5295,6 +5296,7 @@ static int tlsx_ffdhe_find_group(WOLFSSL* ssl, SupportedCurve* clientGroup,
break; break;
} }
} }
}
if (ret != 0) if (ret != 0)
break; break;