Unbreak sockstat(1) on systems without the divert protocol.

This commit is contained in:
Ruslan Ermilov 2004-12-06 09:28:05 +00:00
parent f2b0d1538d
commit 4b2a3d41da
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138437

View File

@ -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;