diff options
author | ru <ru@FreeBSD.org> | 2004-12-06 09:28:05 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-12-06 09:28:05 +0000 |
commit | 96a90ac8d7dbefb993ca4f61674c00815248dd5b (patch) | |
tree | c6190b5d7659441c2f8ba0fe4d405802605852eb /usr.bin/sockstat | |
parent | f55a4ad1b5ce7bbbc7b9c40ea2e963694e32788c (diff) | |
download | FreeBSD-src-96a90ac8d7dbefb993ca4f61674c00815248dd5b.zip FreeBSD-src-96a90ac8d7dbefb993ca4f61674c00815248dd5b.tar.gz |
Unbreak sockstat(1) on systems without the divert protocol.
Diffstat (limited to 'usr.bin/sockstat')
-rw-r--r-- | usr.bin/sockstat/sockstat.c | 2 |
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; |