Fix warning.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 1 Dec 2013 23:30:21 +0000 (23:30 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 1 Jul 2014 12:37:04 +0000 (13:37 +0100)
(cherry picked from commit c97ec5631bb08a2171a125008d2f0d2a75687aaa)

ssl/s23_clnt.c

index dad7e3a..e32fbbf 100644 (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);