diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-12-23 15:01:53 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-12-23 15:01:53 +0100 |
commit | c7834ecd45194dbca9762ad8fc06072b77481a29 (patch) | |
tree | e300cde79b0ee9d122ee582be3ad3fffaaf11e57 /lib/vtls | |
parent | 44b9b4d4f56d6f6de92c89636994c03984e9cd01 (diff) |
gnutls-random: check return code for failed random
Diffstat (limited to 'lib/vtls')
-rw-r--r-- | lib/vtls/gtls.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c index 0e308cb79..282ceb229 100644 --- a/lib/vtls/gtls.c +++ b/lib/vtls/gtls.c @@ -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 */ |