summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-12-06 09:28:05 +0000
committerru <ru@FreeBSD.org>2004-12-06 09:28:05 +0000
commit96a90ac8d7dbefb993ca4f61674c00815248dd5b (patch)
treec6190b5d7659441c2f8ba0fe4d405802605852eb /usr.bin
parentf55a4ad1b5ce7bbbc7b9c40ea2e963694e32788c (diff)
downloadFreeBSD-src-96a90ac8d7dbefb993ca4f61674c00815248dd5b.zip
FreeBSD-src-96a90ac8d7dbefb993ca4f61674c00815248dd5b.tar.gz
Unbreak sockstat(1) on systems without the divert protocol.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/sockstat/sockstat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/sockstat/sockstat.c b/usr.bin/sockstat/sockstat.c
index 7e97dad..87deb73 100644
--- a/usr.bin/sockstat/sockstat.c
+++ b/usr.bin/sockstat/sockstat.c
@@ -222,6 +222,8 @@ gather_inet(int proto)
len = bufsize;
if (sysctlbyname(varname, buf, &len, NULL, 0) == 0)
break;
+ if (errno == ENOENT)
+ goto out;
if (errno != ENOMEM)
err(1, "sysctlbyname()");
bufsize *= 2;
OpenPOWER on IntegriCloud