From 8c6725870175e91c8f55e66c7a42bb78e442415d Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Fri, 6 Feb 2004 21:05:58 +0000 Subject: permit IPv6-only operation (permit AF_INET6 bind(2) without IPv4 address). found by todd fries. markus ok --- sys/netinet6/in6_pcb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys') 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 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)) -- cgit v1.2.3