summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-03-31 18:02:23 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-03-31 18:02:23 +0000
commit0b1cf4a139b81727e19bb0c25775049ec787c444 (patch)
treec395ae1331423b8f15df3cd007621340370e014a /ssl
parenta9101cdcaa77ef4a7301b7a90aee32459257f02b (diff)
PR: 2778(part)
Submitted by: John Fitzgibbon <john_fitzgibbon@yahoo.com> Time is always encoded as 4 bytes, not sizeof(Time).
Diffstat (limited to 'ssl')
-rw-r--r--ssl/d1_srvr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/d1_srvr.c b/ssl/d1_srvr.c
index f7bb18e703..2efaa19ddc 100644
--- a/ssl/d1_srvr.c
+++ b/ssl/d1_srvr.c
@@ -748,7 +748,7 @@ int dtls1_send_server_hello(SSL *s)
p=s->s3->server_random;
Time=(unsigned long)time(NULL); /* Time */
l2n(Time,p);
- RAND_pseudo_bytes(p,SSL3_RANDOM_SIZE-sizeof(Time));
+ RAND_pseudo_bytes(p,SSL3_RANDOM_SIZE-4);
/* Do the message type and length last */
d=p= &(buf[DTLS1_HM_HEADER_LENGTH]);