DTLS handshake message fragments musn't span packets
authorMatt Caswell <matt@openssl.org>
Mon, 1 Jun 2015 16:25:29 +0000 (17:25 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 10 Jun 2015 11:12:57 +0000 (12:12 +0100)
commitd46de4ce483d684ecbec2aa967618f06865ae74a
tree124c06d653d975dd9e44dbcfe0de7645c1cfaba7
parent418df5ea232811dc7339380c1aa5e07c28c6c6dc
DTLS handshake message fragments musn't span packets

It should not be possible for DTLS message fragments to span multiple
packets. However previously if the message header fitted exactly into one
packet, and the fragment body was in the next packet then this would work.
Obviously this would fail if packets get re-ordered mid-flight.

Reviewed-by: Tim Hudson <tjh@openssl.org>
ssl/d1_both.c