Skip to content
Snippets Groups Projects
Commit 4f605ccb authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Clear existing extension state.


When parsing ClientHello clear any existing extension state from
SRP login and SRTP profile.

Thanks to Karthikeyan Bhargavan for reporting this issue.
Reviewed-by: default avatarMatt Caswell <matt@openssl.org>
parent 2a9338ee
No related branches found
No related tags found
No related merge requests found
......@@ -1996,6 +1996,16 @@ static int ssl_scan_clienthello_tlsext(SSL *s, unsigned char **p, unsigned char
s->s3->flags &= ~TLS1_FLAGS_ENCRYPT_THEN_MAC;
#endif
#ifndef OPENSSL_NO_SRP
if (s->srp_ctx.login != NULL)
{
OPENSSL_free(s->srp_ctx.login);
s->srp_ctx.login = NULL;
}
#endif
s->srtp_profile = NULL;
if (data >= (d+n-2))
goto ri_check;
n2s(data,len);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment