]> granicus.if.org Git - psmisc/commitdiff
Fixed v4 versus v6 problem
authorCraig Small <csmall@enc.com.au>
Mon, 19 May 2014 12:56:50 +0000 (22:56 +1000)
committerCraig Small <csmall@enc.com.au>
Mon, 19 May 2014 12:56:50 +0000 (22:56 +1000)
fuser -n tcp 80 always worked because the v4 or v6 problem didnt hit
single ports, but any ipv4 or ipv6 remote address wouldn't work.
Caught by Coverity CID46269

src/fuser.c

index 8d9bd527a49499461cd33efa4da606e47f935869..4e16d676a3ab79870d22135840ada0084f73e299 100644 (file)
@@ -528,7 +528,7 @@ parse_mounts(struct names *this_name, struct device_list **dev_list,
 
 #ifdef WITH_IPV6
 int
-parse_inet(struct names *this_name, const int ipv6_only, const int ipv4_only,
+parse_inet(struct names *this_name, const int ipv4_only, const int ipv6_only,
           struct ip_connections **ip_list, struct ip6_connections **ip6_list)
 #else
 int parse_inet(struct names *this_name, struct ip_connections **ip_list)