Unbreak sockstat(1) on systems without the divert protocol.
This commit is contained in:
parent
f2b0d1538d
commit
4b2a3d41da
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138437
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user