mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
gnutls-random: check return code for failed random
This commit is contained in:
parent
44b9b4d4f5
commit
c7834ecd45
@ -1630,8 +1630,10 @@ int Curl_gtls_random(struct Curl_easy *data,
|
||||
size_t length)
|
||||
{
|
||||
#if defined(USE_GNUTLS_NETTLE)
|
||||
int rc;
|
||||
(void)data;
|
||||
gnutls_rnd(GNUTLS_RND_RANDOM, entropy, length);
|
||||
rc = gnutls_rnd(GNUTLS_RND_RANDOM, entropy, length);
|
||||
return rc;
|
||||
#elif defined(USE_GNUTLS)
|
||||
if(data)
|
||||
Curl_gtls_seed(data); /* Initiate the seed if not already done */
|
||||
|
Loading…
x
Reference in New Issue
Block a user