From a3768e0c9b8b80fadcab06afed77a9d27ed1b6dd Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Tue, 26 Apr 2016 18:33:03 +0100 Subject: [PATCH] Free a BIO_ADDR if DTLSv1_listen return <=0 Reviewed-by: Richard Levitte --- apps/s_server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/s_server.c b/apps/s_server.c index c998fcdebc..dce02f036c 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -2481,6 +2481,8 @@ static int init_ssl_connection(SSL *con) BIO_ADDR_free(client); dtlslisten = 0; i = SSL_accept(con); + } else { + BIO_ADDR_free(client); } } else #endif -- 2.25.1