Skip to content

Commit 0c24aff

Browse files
authored
Merge pull request #7864 from gojimmypi/pr-fix-dh-ret
fix interim return variable name when DH enabled
2 parents 39a4780 + e0e0576 commit 0c24aff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • IDE/Espressif/ESP-IDF/examples/wolfssl_client/main

IDE/Espressif/ESP-IDF/examples/wolfssl_client/main/client-tls.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@ WOLFSSL_ESP_TASK tls_smp_client_task(void* args)
297297

298298
/* see user_settings PROJECT_DH for HAVE_DH and HAVE_FFDHE_2048 */
299299
#ifndef NO_DH
300-
ret = wolfSSL_CTX_SetMinDhKey_Sz(ctx, (word16)minDhKeyBits);
301-
if (ret != WOLFSSL_SUCCESS) {
300+
ret_i = wolfSSL_CTX_SetMinDhKey_Sz(ctx, (word16)minDhKeyBits);
301+
if (ret_i != WOLFSSL_SUCCESS) {
302302
ESP_LOGE(TAG, "Error setting minimum DH key size");
303303
}
304304
#endif

0 commit comments

Comments
 (0)