mirror of
https://github.com/curl/curl.git
synced 2026-07-23 12:07:17 +03:00
mbedtls: bail out if rng init fails
There was a failf() call but no actual error return. Closes #8796
This commit is contained in:
parent
b5b86856a9
commit
d7fb9ab7ce
1 changed files with 2 additions and 0 deletions
|
|
@ -305,6 +305,7 @@ mbed_connect_step1(struct Curl_easy *data, struct connectdata *conn,
|
|||
mbedtls_strerror(ret, errorbuf, sizeof(errorbuf));
|
||||
failf(data, "Failed - mbedTLS: ctr_drbg_init returned (-0x%04X) %s",
|
||||
-ret, errorbuf);
|
||||
return CURLE_FAILED_INIT;
|
||||
}
|
||||
#else
|
||||
mbedtls_entropy_init(&backend->entropy);
|
||||
|
|
@ -316,6 +317,7 @@ mbed_connect_step1(struct Curl_easy *data, struct connectdata *conn,
|
|||
mbedtls_strerror(ret, errorbuf, sizeof(errorbuf));
|
||||
failf(data, "Failed - mbedTLS: ctr_drbg_init returned (-0x%04X) %s",
|
||||
-ret, errorbuf);
|
||||
return CURLE_FAILED_INIT;
|
||||
}
|
||||
#endif /* THREADING_SUPPORT */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue