Verify that we have a sensible message len and fail if not
authorMatt Caswell <matt@openssl.org>
Mon, 1 Dec 2014 11:10:38 +0000 (11:10 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 3 Dec 2014 09:30:21 +0000 (09:30 +0000)
commit5e47008b6179c434d97041e37a146a989c38bc5f
tree085a4a9931f14364662f454a3c8a350e58bf2bd5
parente9f47de1f009b523635c0f4dc083e6acb3e56a71
Verify that we have a sensible message len and fail if not
RT#3592 provides an instance where the OPENSSL_assert that this commit
replaces can be hit. I was able to recreate this issue by forcing the
underlying BIO to misbehave and come back with very small mtu values. This
happens the second time around the while loop after we have detected that the
MTU has been exceeded following the call to dtls1_write_bytes.

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