pfctl: also remove incorrect counter print for rule anchors

Just as for nat anchors we can't print counters for rule anchors. Remove the
incorrect print call.

MFC after:	2 weeks
Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Kristof Provost 2025-04-15 13:13:50 +02:00
parent 4e5657ab34
commit 0fc3c29fb3

View file

@ -1269,7 +1269,6 @@ pfctl_show_rules(int dev, char *path, int opts, enum pfctl_show format,
errc(1, ret, "DIOCGETRULESETS");
}
pfctl_print_rule_counters(&rule, opts);
for (nr = 0; nr < mnr; ++nr) {
if ((ret = pfctl_get_ruleset(pfh, npath, nr, &prs)) != 0)
errc(1, ret, "DIOCGETRULESET");