Commit 8c2b1d87 authored by Matt Caswell's avatar Matt Caswell
Browse files

Check the message type requested is the type received in DTLS



dtls1_get_message has an |mt| variable which is the type of the message that
is being requested. If it is negative then any message type is allowed.
However the value of |mt| is not checked in one of the main code paths, so a
peer can send a message of a completely different type and it will be
processed as if it was the message type that we were expecting. This has
very little practical consequences because the current behaviour will still
fail when the format of the message isn't as expected.

Reviewed-by: default avatarAndy Polyakov <appro@openssl.org>
parent 1c8a527c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment