summaryrefslogtreecommitdiffstats
path: root/ssl/d1_both.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2014-12-15 20:48:33 +0000
committerMatt Caswell <matt@openssl.org>2014-12-16 00:13:36 +0000
commit4ca0e95b92811f7dac9fff213350c248619a135c (patch)
tree537e7637ab813d3094ddbbcbb72db0850a6e4190 /ssl/d1_both.c
parentf9398b92de8c124c8c8e2a687e705b62758bef6f (diff)
Remove extraneous white space, and add some braces
Reviewed-by: Emilia Käsper <emilia@openssl.org> (cherry picked from commit 55e530265a7ea8f264717a4e37338cc04eca2007)
Diffstat (limited to 'ssl/d1_both.c')
-rw-r--r--ssl/d1_both.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ssl/d1_both.c b/ssl/d1_both.c
index 5be7d1c48e..a2a39baa60 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 */