diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2004-12-06 09:28:05 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2004-12-06 09:28:05 +0000 |
| commit | 4b2a3d41da122f8ffd2e7b2787581791bf9f6817 (patch) | |
| tree | c6190b5d7659441c2f8ba0fe4d405802605852eb /usr.bin | |
| parent | f2b0d1538d601d24c14351c19961761099658495 (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -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 7e97dad637c4e..87deb7358e45e 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; |
