From 2ececf59deb88819a5caf8de61d357ff87bf8190 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Mon, 15 Dec 2014 20:48:33 +0000 Subject: Remove extraneous white space, and add some braces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Emilia Käsper (cherry picked from commit 55e530265a7ea8f264717a4e37338cc04eca2007) --- ssl/d1_both.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ssl') diff --git a/ssl/d1_both.c b/ssl/d1_both.c index ee366e6f03..f3492c04d7 100644 --- a/ssl/d1_both.c +++ b/ssl/d1_both.c @@ -285,7 +285,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; @@ -302,10 +302,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 */ -- cgit v1.2.3