Free a BIO_ADDR if DTLSv1_listen return <=0
authorMatt Caswell <matt@openssl.org>
Tue, 26 Apr 2016 17:33:03 +0000 (18:33 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 1 Jun 2016 13:51:36 +0000 (14:51 +0100)
Reviewed-by: Richard Levitte <levitte@openssl.org>
apps/s_server.c

index c998fcd..dce02f0 100644 (file)
@@ -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