Clear alpn_selected_len for clients, too
authorBenjamin Kaduk <bkaduk@akamai.com>
Wed, 15 Mar 2017 00:17:15 +0000 (19:17 -0500)
committerRichard Levitte <levitte@openssl.org>
Wed, 15 Mar 2017 02:18:01 +0000 (03:18 +0100)
commita5bb1aa128dcadf7a026061b2804646f5fbaa72c
treec066603523f06ef62116bd341ef182da1c5aa8d5
parent1ae4c07e50a4988c7e2263ad669dc75fe2d494cb
Clear alpn_selected_len for clients, too

Zero out the length alongside the NULLing of the pointer, to
bring parity between the selected and proposed fields..

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2954)
ssl/statem/extensions.c