[openssl-commits] [openssl] master update

Viktor Dukhovni viktor at openssl.org
Sat Feb 10 02:08:14 UTC 2018


The branch master has been updated
       via  4e0752535eb87b9aab4cf193f4422b5801ab7b32 (commit)
      from  ebc20cfa746cb7dec91aff1e241063d785644fe3 (commit)


- Log -----------------------------------------------------------------
commit 4e0752535eb87b9aab4cf193f4422b5801ab7b32
Author: Viktor Dukhovni <openssl-users at dukhovni.org>
Date:   Fri Feb 9 18:34:33 2018 -0500

    Avoid leaking peername data via accept BIOs
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 crypto/bio/bss_acpt.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/crypto/bio/bss_acpt.c b/crypto/bio/bss_acpt.c
index e426ecd..72ad6a1 100644
--- a/crypto/bio/bss_acpt.c
+++ b/crypto/bio/bss_acpt.c
@@ -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);
 


More information about the openssl-commits mailing list