diff options
author | 2004-02-06 21:05:57 +0000 | |
---|---|---|
committer | 2004-02-06 21:05:57 +0000 | |
commit | 031dbccc620b5301963c13352f20a17ddb5d8902 (patch) | |
tree | e9806bafbe31747e3a6ba5ddf31197b31c61fb59 | |
parent | use a struct bgpd_addr for the address token instead of a in_addr, claudio ok (diff) | |
download | wireguard-openbsd-031dbccc620b5301963c13352f20a17ddb5d8902.tar.xz wireguard-openbsd-031dbccc620b5301963c13352f20a17ddb5d8902.zip |
permit IPv6-only operation (permit AF_INET6 bind(2) without IPv4 address).
found by todd fries. markus ok
-rw-r--r-- | sys/netinet6/in6_pcb.c | 5 |
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)) |