The first call to query the mtu in dtls1_do_write correctly checks that the
authorMatt Caswell <matt@openssl.org>
Mon, 1 Dec 2014 11:41:25 +0000 (11:41 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 3 Dec 2014 09:38:10 +0000 (09:38 +0000)
commit8724f9f9cfd2925909dc836002673964c7ce67a4
tree211f4fae04dbc85161ce7210daa033390047aa2e
parent6d41cbb63aa342665c5f60ea3579410331d656ee
The first call to query the mtu in dtls1_do_write correctly checks that the
mtu that we have received is not less than the minimum. If its less it uses the
minimum instead. The second call to query the mtu does not do that, but
instead uses whatever comes back. We have seen an instance in RT#3592 where we
have got an unreasonably small mtu come back. This commit makes both query
checks consistent.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(cherry picked from commit 6abb0d1f8e702a0daa9c32b8021d01eda0483018)
ssl/d1_both.c