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

Don't set peer_tmp until we have finished constructing it



If we fail halfway through constructing the peer_tmp EVP_PKEY but we have
already stored it in s->s3->peer_tmp then if anything tries to use it then
it will likely fail. This was causing s_client to core dump in the
sslskewith0p test. s_client was trying to print out the connection
parameters that it had negotiated so far. Arguably s_client should not do
that if the connection has failed...but given it is existing functionality
it's easier to fix libssl.

Reviewed-by: default avatarViktor Dukhovni <viktor@openssl.org>
parent 48c1e15c
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