summaryrefslogtreecommitdiffstats
path: root/lib/libtls/tls_server.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2016-11-04 19:01:29 +0000
committerjsing <jsing@openbsd.org>2016-11-04 19:01:29 +0000
commit777595f383cf7982419c62b9630ec0e2f5bfe9bc (patch)
treeaa07558f3221fd560d832dea77b22d7be9cb2657 /lib/libtls/tls_server.c
parentMake the tls_keypair_new() function a valid prototype. (diff)
downloadwireguard-openbsd-777595f383cf7982419c62b9630ec0e2f5bfe9bc.tar.xz
wireguard-openbsd-777595f383cf7982419c62b9630ec0e2f5bfe9bc.zip
Avoid shadowing the socket global.
ok miod@
Diffstat (limited to 'lib/libtls/tls_server.c')
-rw-r--r--lib/libtls/tls_server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libtls/tls_server.c b/lib/libtls/tls_server.c
index fbd726f3353..e3b03e13019 100644
--- a/lib/libtls/tls_server.c
+++ b/lib/libtls/tls_server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls_server.c,v 1.28 2016/09/14 11:34:37 bcook Exp $ */
+/* $OpenBSD: tls_server.c,v 1.29 2016/11/04 19:01:29 jsing Exp $ */
/*
* Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
*
@@ -313,9 +313,9 @@ tls_accept_common(struct tls *ctx)
}
int
-tls_accept_socket(struct tls *ctx, struct tls **cctx, int socket)
+tls_accept_socket(struct tls *ctx, struct tls **cctx, int s)
{
- return (tls_accept_fds(ctx, cctx, socket, socket));
+ return (tls_accept_fds(ctx, cctx, s, s));
}
int