Permalink
Browse files

randit: store the value in the buffer

  • Loading branch information...
1 parent 7a01b33 commit f81b2277a8e7e9ce8809ccd30c25b8aa72101215 @kdudka kdudka committed with bagder Dec 21, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rand.c
View
@@ -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 */

0 comments on commit f81b227

Please sign in to comment.