summaryrefslogtreecommitdiff
path: root/sbin/ipnat
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-02-13 23:33:38 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-02-13 23:33:38 +0000
commit78609217f95aa01edc48e843c178cee4b31ac92c (patch)
tree19758d3eeaf589175b99b41d0b5383e0a704e901 /sbin/ipnat
parent0e0a24a754dcc6716c57d7beba43facad2245f34 (diff)
don't fail completely in if_addr() just because one interface won't SIOCGIFADDR.
Diffstat (limited to 'sbin/ipnat')
-rw-r--r--sbin/ipnat/ipnat.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sbin/ipnat/ipnat.c b/sbin/ipnat/ipnat.c
index f1911c53c31..18b1f2c2800 100644
--- a/sbin/ipnat/ipnat.c
+++ b/sbin/ipnat/ipnat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipnat.c,v 1.11 1997/02/13 01:19:05 kstailey Exp $ */
+/* $OpenBSD: ipnat.c,v 1.12 1997/02/13 23:33:37 kstailey Exp $ */
/*
* (C)opyright 1993,1994,1995 by Darren Reed.
*
@@ -415,10 +415,8 @@ char *name;
sizeof(ifr->ifr_name)))
continue;
ifreq = *ifr;
- if (ioctl(s, SIOCGIFADDR, (caddr_t)ifr) < 0) {
- warn("SIOCGIFADDR");
- goto if_addr_lose;
- }
+ if (ioctl(s, SIOCGIFADDR, (caddr_t)ifr) < 0)
+ continue;
if (ifr->ifr_addr.sa_family != AF_INET)
continue;
if (!strcmp(name, ifr->ifr_name)) {