Fix ssl_cert_set0_chain invalid pointer
authorTodd Short <tshort@akamai.com>
Thu, 26 May 2016 00:56:48 +0000 (20:56 -0400)
committerMatt Caswell <matt@openssl.org>
Fri, 27 May 2016 16:20:10 +0000 (17:20 +0100)
commit4379d5ce782d4cc83840db7b7b66e18d325dfd3e
tree1e03949fb2e1b289238d1f22db7903c7b25d717b
parent230c691a5218f355a63ff12cd72ce99178378c64
Fix ssl_cert_set0_chain invalid pointer

When setting the certificate chain, if a certificate doesn't pass
security checks, then chain may point to a freed STACK_OF(X509)

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
ssl/ssl_cert.c