The first call to query the mtu in dtls1_do_write correctly checks that the