Avoid leaking peername data via accept BIOs
Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
ebc20cfa74
commit
4e0752535e
1 changed files with 5 additions and 0 deletions
|
@ -275,6 +275,11 @@ static int acpt_state(BIO *b, BIO_ACCEPT *c)
|
|||
BIO_clear_retry_flags(b);
|
||||
b->retry_reason = 0;
|
||||
|
||||
OPENSSL_free(c->cache_peer_name);
|
||||
c->cache_peer_name = NULL;
|
||||
OPENSSL_free(c->cache_peer_serv);
|
||||
c->cache_peer_serv = NULL;
|
||||
|
||||
s = BIO_accept_ex(c->accept_sock, &c->cache_peer_addr,
|
||||
c->accepted_mode);
|
||||
|
||||
|
|
Loading…
Reference in a new issue