diff options
author | Matt Caswell <matt@openssl.org> | 2014-12-15 20:48:33 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2014-12-16 00:00:25 +0000 |
commit | 55e530265a7ea8f264717a4e37338cc04eca2007 (patch) | |
tree | db1ea26c07eeff1a0059c8d27a9b1b6a8a4f9d85 | |
parent | 1904d21123849a65dafde1705e6dd5b7c2f420eb (diff) | |
download | openssl-55e530265a7ea8f264717a4e37338cc04eca2007.tar.gz |
Remove extraneous white space, and add some braces
Reviewed-by: Emilia Käsper <emilia@openssl.org>
-rw-r--r-- | ssl/d1_both.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ssl/d1_both.c b/ssl/d1_both.c index 5122936946..14d45b57a9 100644 --- a/ssl/d1_both.c +++ b/ssl/d1_both.c @@ -290,7 +290,7 @@ int dtls1_do_write(SSL *s, int type) frag_off = 0; /* s->init_num shouldn't ever be < 0...but just in case */ - while( s->init_num > 0) + while(s->init_num > 0) { used_len = BIO_wpending(SSL_get_wbio(s)) + DTLS1_RT_HEADER_LENGTH + mac_size + blocksize; @@ -307,10 +307,14 @@ int dtls1_do_write(SSL *s, int type) return ret; used_len = DTLS1_RT_HEADER_LENGTH + mac_size + blocksize; if(s->d1->mtu > used_len + DTLS1_HM_HEADER_LENGTH) + { curr_mtu = s->d1->mtu - used_len; + } else + { /* Shouldn't happen */ return -1; + } } /* We just checked that s->init_num > 0 so this cast should be safe */ |