If s->ctx is NULL then this is an internal error
authorMatt Caswell <matt@openssl.org>
Mon, 12 Feb 2018 16:24:59 +0000 (16:24 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 15 Feb 2018 15:14:45 +0000 (15:14 +0000)
commitc471521243c729d344c2ab641feed7cfb7b8a36d
tree59b352d200ba5e6b35bb682a36640a460670bf58
parent812b15370613da4768d91b9e566fdf5a30c06805
If s->ctx is NULL then this is an internal error

Coverity was complaining because we checked if s->ctx is NULL and then
later on in the function deref s->ctx anyway. In reality if s->ctx is
NULL then this is an internal error.

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/5334)
ssl/statem/extensions.c