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:23:56 +0000 (09:23 +0000)
commit6abb0d1f8e702a0daa9c32b8021d01eda0483018
tree7722767820e7b5fb8ed8720325a04701a7921d76
parent001235778a6e9c645dc0507cad6092d99c9af8f5
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>
ssl/d1_both.c