Assert that alpn_selected is NULL before we assign it
authorMatt Caswell <matt@openssl.org>
Wed, 21 Mar 2018 20:19:37 +0000 (20:19 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 27 Mar 2018 15:19:17 +0000 (16:19 +0100)
commit9d5db9c9ab9b9f2f2a5ce9795405e8334cd2ce66
tree774ec2fae08e9a38d96260763d38de5e19b97f90
parent53c9818e970fc0c22d77e19fda3b3e6f6c9e759d
Assert that alpn_selected is NULL before we assign it

The alpn_selected value in the session should be NULL before we first
populate it if this is a new session. We assert to make sure it is.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5715)
ssl/statem/extensions_clnt.c
ssl/statem/statem_srvr.c