Cleanup.
authorBen Laurie <ben@links.org>
Sat, 19 Oct 2013 11:34:15 +0000 (12:34 +0100)
committerBen Laurie <ben@links.org>
Sat, 19 Oct 2013 11:34:15 +0000 (12:34 +0100)
ssl/d1_clnt.c
ssl/s23_clnt.c
ssl/s3_srvr.c

index 556ac9ccc7a5e54ab6a21b116c8e6ad07401f7f9..492d6dfbeeb1bc13f77a158c7185b00c75bbd971 100644 (file)
@@ -798,11 +798,10 @@ int dtls1_client_hello(SSL *s)
 
                /* if client_random is initialized, reuse it, we are
                 * required to use same upon reply to HelloVerify */
-               for (i=0;p[i]=='\0' && i<sizeof(s->s3->client_random);i++) ;
+               for (i=0;p[i]=='\0' && i<sizeof(s->s3->client_random);i++)
+                       ;
                if (i==sizeof(s->s3->client_random))
-                       {
                        ssl_fill_hello_random(s,0,p,sizeof(s->s3->client_random));
-                       }
 
                /* Do the message type and length last */
                d=p= &(buf[DTLS1_HM_HEADER_LENGTH]);
index 65d2c26ad2844a01a3110489144bd693be854baf..84670b6c1c37c9602ac47c1c8ec2fddc1b729b9f 100644 (file)
@@ -274,6 +274,7 @@ static int ssl23_no_ssl2_ciphers(SSL *s)
 int ssl_fill_hello_random(SSL *s, int server, unsigned char *result, int len)
        {
        int send_time = 0;
+
        if (len < 4)
                return 0;
        if (server)
index 508239fce5276c67c79aa0b4f0113674b17afa7e..e8c7e6d1f47450d073d8f491ae47129f0a2b150f 100644 (file)
@@ -1195,7 +1195,7 @@ int ssl3_get_client_hello(SSL *s)
        {
                unsigned char *pos;
                pos=s->s3->server_random;
-               if (ssl_fill_hello_random(s,1,pos,SSL3_RANDOM_SIZE) <= 0)
+               if (ssl_fill_hello_random(s, 1, pos, SSL3_RANDOM_SIZE) <= 0)
                        {
                        al=SSL_AD_INTERNAL_ERROR;
                        goto f_err;