Skip to content

Commit f81b227

Browse files
kdudkabagder
authored andcommitted
randit: store the value in the buffer
1 parent 7a01b33 commit f81b227

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rand.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static CURLcode randit(struct Curl_easy *data, unsigned int *rnd)
5959
#endif
6060

6161
/* data may be NULL! */
62-
result = Curl_ssl_random(data, (unsigned char *)&rnd, sizeof(rnd));
62+
result = Curl_ssl_random(data, (unsigned char *)rnd, sizeof(*rnd));
6363
if(result != CURLE_NOT_BUILT_IN)
6464
/* only if there is no random funtion in the TLS backend do the non crypto
6565
version, otherwise return result */

0 commit comments

Comments
 (0)