summaryrefslogtreecommitdiffstats
path: root/lib/libtls/tls_client.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2015-09-29 13:10:53 +0000
committerjsing <jsing@openbsd.org>2015-09-29 13:10:53 +0000
commitfc5c813d12eafcf3fd0e29516a5c8cd3438177ef (patch)
treefe6078fa80450db9b636768d639a48a32fad7ac9 /lib/libtls/tls_client.c
parentmake the bpf filters a bpf_program instead of an array of bpf_insn. (diff)
downloadwireguard-openbsd-fc5c813d12eafcf3fd0e29516a5c8cd3438177ef.tar.xz
wireguard-openbsd-fc5c813d12eafcf3fd0e29516a5c8cd3438177ef.zip
Instead of declaring a union in multiple places, move it to tls_internal.h.
ok deraadt@
Diffstat (limited to 'lib/libtls/tls_client.c')
-rw-r--r--lib/libtls/tls_client.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libtls/tls_client.c b/lib/libtls/tls_client.c
index cea01d17fec..af1b05ab713 100644
--- a/lib/libtls/tls_client.c
+++ b/lib/libtls/tls_client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls_client.c,v 1.29 2015/09/29 10:17:04 deraadt Exp $ */
+/* $OpenBSD: tls_client.c,v 1.30 2015/09/29 13:10:53 jsing Exp $ */
/*
* Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
*
@@ -166,10 +166,7 @@ int
tls_connect_fds(struct tls *ctx, int fd_read, int fd_write,
const char *servername)
{
- union {
- struct in_addr ip4;
- struct in6_addr ip6;
- } addrbuf;
+ union tls_addr addrbuf;
int rv = -1;
if ((ctx->flags & TLS_CLIENT) == 0) {