summaryrefslogtreecommitdiff
path: root/sys/netinet6/in6_pcb.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2004-02-06 21:05:58 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2004-02-06 21:05:58 +0000
commit8c6725870175e91c8f55e66c7a42bb78e442415d (patch)
tree4698356e202d5cf6e6992ab10d273d945190b877 /sys/netinet6/in6_pcb.c
parent2ee6a22f98292c308da04eadae46889af2134014 (diff)
permit IPv6-only operation (permit AF_INET6 bind(2) without IPv4 address).
found by todd fries. markus ok
Diffstat (limited to 'sys/netinet6/in6_pcb.c')
-rw-r--r--sys/netinet6/in6_pcb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c
index ec452d3c9fa..ab6286c0b94 100644
--- a/sys/netinet6/in6_pcb.c
+++ b/sys/netinet6/in6_pcb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6_pcb.c,v 1.41 2004/02/05 04:39:57 itojun Exp $ */
+/* $OpenBSD: in6_pcb.c,v 1.42 2004/02/06 21:05:57 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -130,7 +130,6 @@
#include <dev/rndvar.h>
extern struct in6_ifaddr *in6_ifaddr;
-extern struct in_ifaddr *in_ifaddr;
/*
* Globals
@@ -180,7 +179,7 @@ in6_pcbbind(inp, nam)
* REMINDER: Once up to speed, flow label processing should go here,
* too. (Same with in6_pcbconnect.)
*/
- if (in6_ifaddr == 0 || in_ifaddr == 0)
+ if (in6_ifaddr == 0)
return EADDRNOTAVAIL;
if (inp->inp_lport != 0 || !IN6_IS_ADDR_UNSPECIFIED(&inp->inp_laddr6))