Skip to content
Commit 992b3740 authored by Matt Caswell's avatar Matt Caswell
Browse files

Always ensure that init_msg is initialised for a CCS



We read it later in grow_init_buf(). If CCS is the first thing received in
a flight, then it will use the init_msg from the last flight we received. If
the init_buf has been grown in the meantime then it will point to some
arbitrary other memory location. This is likely to result in grow_init_buf()
attempting to grow to some excessively large amount which is likely to
fail. In practice this should never happen because the only time we receive
a CCS as the first thing in a flight is in an abbreviated handshake. None
of the preceding messages from the server flight would be large enough to
trigger this.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
(cherry picked from commit c4377574)
parent 51d8e5ea
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