summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2016-04-12 14:42:54 +0000
committerkrw <krw@openbsd.org>2016-04-12 14:42:54 +0000
commit8c1b33b9396d3956f0599a05fa05d77d4e037b09 (patch)
tree493d6b986ae3d1b47dbf1af352df87242a073d32
parentCall if_enqueue() and if_start() instead of dereferencing the ifp (diff)
downloadwireguard-openbsd-8c1b33b9396d3956f0599a05fa05d77d4e037b09.tar.xz
wireguard-openbsd-8c1b33b9396d3956f0599a05fa05d77d4e037b09.zip
Unbreak tree. Put 'laddr6' declaration inside #ifdef INET6/#endif.
-rw-r--r--sys/netinet/in_pcb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index d2b8d2cd03b..6cf336829ba 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_pcb.c,v 1.203 2016/04/11 21:39:18 vgross Exp $ */
+/* $OpenBSD: in_pcb.c,v 1.204 2016/04/12 14:42:54 krw Exp $ */
/* $NetBSD: in_pcb.c,v 1.25 1996/02/13 23:41:53 christos Exp $ */
/*
@@ -740,7 +740,9 @@ in_pcblookup_local(struct inpcbtable *table, void *laddrp, u_int lport_arg,
int matchwild = 3, wildcard;
u_int16_t lport = lport_arg;
struct in_addr laddr = *(struct in_addr *)laddrp;
+#ifdef INET6
struct in6_addr *laddr6 = (struct in6_addr *)laddrp;
+#endif
struct inpcbhead *head;
rdomain = rtable_l2(rdomain); /* convert passed rtableid to rdomain */