diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-03-31 18:02:43 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-03-31 18:02:43 +0000 |
commit | 63e8f167370880504e27ec8773641f4c5196e9f8 (patch) | |
tree | 8f332203cbdb70c45a4d73a3a93ca223eff45b3c /ssl/d1_srvr.c | |
parent | 9bf5fd894f02d832dc0ce7c1bf8b186f758d533f (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/d1_srvr.c')
-rw-r--r-- | ssl/d1_srvr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/d1_srvr.c b/ssl/d1_srvr.c index 5822379d10..29421da9aa 100644 --- a/ssl/d1_srvr.c +++ b/ssl/d1_srvr.c @@ -920,7 +920,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]); |