From: Kamil Dudka Date: Wed, 21 Dec 2016 14:09:31 +0000 (+0100) Subject: randit: store the value in the buffer X-Git-Tag: curl-7_52_1~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f81b2277a8e7e9ce8809ccd30c25b8aa72101215;p=curl randit: store the value in the buffer --- 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 */