diff options
author | darrenr <darrenr@FreeBSD.org> | 2007-06-24 16:39:12 +0000 |
---|---|---|
committer | darrenr <darrenr@FreeBSD.org> | 2007-06-24 16:39:12 +0000 |
commit | e784ce0e3350e5c64516a693ab96597ee52f8368 (patch) | |
tree | 53bf1538161c84f763c784bd1358d1f7b6a063d5 /contrib/ipfilter | |
parent | 15c31be18b815c9fe268c18b71f76ea363bc8352 (diff) | |
download | FreeBSD-src-e784ce0e3350e5c64516a693ab96597ee52f8368.zip FreeBSD-src-e784ce0e3350e5c64516a693ab96597ee52f8368.tar.gz |
ipfstat should parse "any" when used with -D/-S command line options
PR: bin/113879
Submitted by: kabe@sra-tohoku.co.jp
Reviewed by: darrenr
Approved by: re
Diffstat (limited to 'contrib/ipfilter')
-rw-r--r-- | contrib/ipfilter/tools/ipfstat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/ipfilter/tools/ipfstat.c b/contrib/ipfilter/tools/ipfstat.c index db362d2..481282a 100644 --- a/contrib/ipfilter/tools/ipfstat.c +++ b/contrib/ipfilter/tools/ipfstat.c @@ -1811,7 +1811,7 @@ int *port; *port = -1; } else if (!sscanf(comma + 1, "%d", port) || (*port < 0) || (*port > 65535)) { - fprintf(stderr, "Invalid port specfication in %s\n", + fprintf(stderr, "Invalid port specification in %s\n", argument); free(s); exit(-2); @@ -1823,6 +1823,7 @@ int *port; /* get ip address */ if (!strcasecmp(s, "any")) { ip->in4.s_addr = INADDR_ANY; + ok = 1; #ifdef USE_INET6 ip->in6 = in6addr_any; } else if (use_inet6 && inet_pton(AF_INET6, s, &ip->in6)) { |