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")

(cherry picked from commit 0fc3c29fb3dd6ab6436a78c502544ebf2cf63ee2)
This commit is contained in:
Kristof Provost 2025-04-15 13:13:50 +02:00 committed by Franco Fichtner
parent ec7fc9e700
commit fbc370fe5e

View File

@ -1255,7 +1255,6 @@ pfctl_show_rules(int dev, char *path, int opts, enum pfctl_show format,
}
mnr = prs.nr;
pfctl_print_rule_counters(&rule, opts);
for (nr = 0; nr < mnr; ++nr) {
prs.nr = nr;
if (ioctl(dev, DIOCGETRULESET, &prs))