mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
randit: store the value in the buffer
This commit is contained in:
parent
7a01b33c31
commit
f81b2277a8
@ -59,7 +59,7 @@ static CURLcode randit(struct Curl_easy *data, unsigned int *rnd)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* data may be NULL! */
|
/* 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)
|
if(result != CURLE_NOT_BUILT_IN)
|
||||||
/* only if there is no random funtion in the TLS backend do the non crypto
|
/* only if there is no random funtion in the TLS backend do the non crypto
|
||||||
version, otherwise return result */
|
version, otherwise return result */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user