Fix a memory leak on an error path
authorMatt Caswell <matt@openssl.org>
Sat, 4 Mar 2017 15:45:40 +0000 (15:45 +0000)
committerMatt Caswell <matt@openssl.org>
Sat, 4 Mar 2017 16:20:13 +0000 (16:20 +0000)
commit312e9387fddacbcef4148bd3ace25c7db89e374e
treedc2134d658c15c92d8918f612b0092716d65ae47
parentd08086645f72ab890c6ef996bb513076752431f0
Fix a memory leak on an error path

A leak of an SSL_SESSION object can occur when decoding a psk extension on
an error path when using TLSv1.3

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2843)
ssl/statem/extensions_srvr.c