summaryrefslogtreecommitdiff
path: root/lib/libtls/tls_server.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2016-11-04 19:01:30 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2016-11-04 19:01:30 +0000
commit11db806bbef15bd5df3a42b7e4ea247e1e59a252 (patch)
tree3c5b62ee0b13d927b8ee80cb370c9ac677ebc006 /lib/libtls/tls_server.c
parent291ab2aa8be2f5e4872cbb895493896d6bb845c9 (diff)
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