Fix warning.

(cherry picked from commit c97ec5631b)
This commit is contained in:
Dr. Stephen Henson 2013-12-01 23:30:21 +00:00
parent 9cd86abb51
commit 2580ab4ed7

View file

@ -285,7 +285,7 @@ int ssl_fill_hello_random(SSL *s, int server, unsigned char *result, int len)
send_time = (s->mode & SSL_MODE_SEND_CLIENTHELLO_TIME) != 0;
if (send_time)
{
unsigned long Time = time(NULL);
unsigned long Time = (unsigned long)time(NULL);
unsigned char *p = result;
l2n(Time, p);
return RAND_pseudo_bytes(p, len-4);