diff options
author | Matt Caswell <matt@openssl.org> | 2016-02-05 10:59:42 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-02-05 19:12:18 +0000 |
commit | 3edeb622ba9b01f8d4ac7b1a08ac0f0fa8a27c67 (patch) | |
tree | 625506cf851090504da4ac5514ceb5ee3be8677e /apps/s_server.c | |
parent | 0dc225577c402f71b1aa3b533193ed645f4fe19b (diff) |
Make DTLSv1_listen a first class function and change its type
The DTLSv1_listen function exposed details of the underlying BIO
abstraction and did not properly allow for IPv6. This commit changes the
"peer" argument to be a BIO_ADDR and makes it a first class function
(rather than a ctrl) to ensure proper type checking.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/s_server.c')
-rw-r--r-- | apps/s_server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/s_server.c b/apps/s_server.c index 1a54f082f4..45e9227f07 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -2496,7 +2496,7 @@ static int init_ssl_connection(SSL *con) BIO_printf(bio_err, "ERROR - memory\n"); return 0; } - i = DTLSv1_listen(con, &client); + i = DTLSv1_listen(con, client); if (i > 0) { BIO *wbio; int fd = -1; |