aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2020-07-17 19:07:47 +0000
committerCy Schubert <cy@FreeBSD.org>2020-07-17 19:07:47 +0000
commite082c89385d542a74b7e30a534d83297be1d9426 (patch)
tree1a492ccbcc3149860ae8ce9733f80509a4d80595 /contrib
parent08c24e2f886854e8eadb9a522a451fcc6a78480a (diff)
downloadsrc-e082c89385d542a74b7e30a534d83297be1d9426.tar.gz
src-e082c89385d542a74b7e30a534d83297be1d9426.zip
Notes
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ipfilter/tools/ipfstat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/ipfilter/tools/ipfstat.c b/contrib/ipfilter/tools/ipfstat.c
index 43878f44d246..1d40dc67b413 100644
--- a/contrib/ipfilter/tools/ipfstat.c
+++ b/contrib/ipfilter/tools/ipfstat.c
@@ -1973,6 +1973,9 @@ static char *getip(v, addr)
static char hostbuf[MAXHOSTNAMELEN+1];
#endif
+ if (v == 0)
+ return ("any");
+
if (v == 4)
return inet_ntoa(addr->in4);