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:30:21 +0000 (09:30 +0000)
commit80d09058af89781d7ca2b7bd064fea2615bb4e20
tree7140391142a9a7663611f02b4f92808fa624a948
parent3cc0c0d21c1d87159fab1a102cdf43de1a7b8416
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