Skip to content

Commit

Permalink
Merge pull request #7864 from gojimmypi/pr-fix-dh-ret
Browse files Browse the repository at this point in the history
fix interim return variable name when DH enabled
  • Loading branch information
douzzer authored Aug 15, 2024
2 parents 39a4780 + e0e0576 commit 0c24aff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ WOLFSSL_ESP_TASK tls_smp_client_task(void* args)

/* see user_settings PROJECT_DH for HAVE_DH and HAVE_FFDHE_2048 */
#ifndef NO_DH
ret = wolfSSL_CTX_SetMinDhKey_Sz(ctx, (word16)minDhKeyBits);
if (ret != WOLFSSL_SUCCESS) {
ret_i = wolfSSL_CTX_SetMinDhKey_Sz(ctx, (word16)minDhKeyBits);
if (ret_i != WOLFSSL_SUCCESS) {
ESP_LOGE(TAG, "Error setting minimum DH key size");
}
#endif
Expand Down

0 comments on commit 0c24aff

Please sign in to comment.