aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2016-12-21 15:09:31 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-12-21 23:42:43 +0100
commitf81b2277a8e7e9ce8809ccd30c25b8aa72101215 (patch)
tree6f586bdf843469ca570972c35dca8036cb4cd3de /lib
parent7a01b33c313f15294024efe7652ec7ac4e848f5b (diff)
randit: store the value in the buffer
Diffstat (limited to 'lib')
-rw-r--r--lib/rand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rand.c b/lib/rand.c
index 0e716a77c..a51951cea 100644
--- a/lib/rand.c
+++ b/lib/rand.c
@@ -59,7 +59,7 @@ static CURLcode randit(struct Curl_easy *data, unsigned int *rnd)
#endif
/* data may be NULL! */
- result = Curl_ssl_random(data, (unsigned char *)&rnd, sizeof(rnd));
+ result = Curl_ssl_random(data, (unsigned char *)rnd, sizeof(*rnd));
if(result != CURLE_NOT_BUILT_IN)
/* only if there is no random funtion in the TLS backend do the non crypto
version, otherwise return result */