mirror of
https://github.com/openssl/openssl.git
synced 2024-12-05 07:54:47 +08:00
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)
This commit is contained in:
parent
1ae4c07e50
commit
a5bb1aa128
@ -875,8 +875,8 @@ static int init_alpn(SSL *s, unsigned int context)
|
||||
{
|
||||
OPENSSL_free(s->s3->alpn_selected);
|
||||
s->s3->alpn_selected = NULL;
|
||||
s->s3->alpn_selected_len = 0;
|
||||
if (s->server) {
|
||||
s->s3->alpn_selected_len = 0;
|
||||
OPENSSL_free(s->s3->alpn_proposed);
|
||||
s->s3->alpn_proposed = NULL;
|
||||
s->s3->alpn_proposed_len = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user