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:23:09 +0000 (09:23 +0000)
commitcf75017bfd60333ff65edf9840001cd2c49870a3
tree15a3fcd338ca8044aafd590ce117ed024532374e
parent961d2ddb4b48e0e857a704b0cc6b475d63372419
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>
ssl/d1_both.c