Fix double free in cookie generation.
Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> GH: #2850
This commit is contained in:
parent
6556519ea0
commit
febb0afaef
1 changed files with 1 additions and 0 deletions
|
@ -658,6 +658,7 @@ int tls_construct_ctos_cookie(SSL *s, WPACKET *pkt, unsigned int context,
|
|||
ret = 1;
|
||||
end:
|
||||
OPENSSL_free(s->ext.tls13_cookie);
|
||||
s->ext.tls13_cookie = NULL;
|
||||
s->ext.tls13_cookie_len = 0;
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue