mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
libpfctl: fix incorrect pcounters array size
The array is 2 x 2 x 2, not 2 x 2 x 3.
Sponsored by: Rubicon Communications, LLC ("Netgate")
MFC after: 2 weeks
This commit is contained in:
parent
e05b6502f9
commit
a3f7176523
2 changed files with 2 additions and 2 deletions
|
|
@ -325,7 +325,7 @@ pfctl_get_status(int dev)
|
|||
_pfctl_get_status_counters(nvlist_get_nvlist(nvl, "scounters"),
|
||||
&status->scounters);
|
||||
|
||||
pf_nvuint_64_array(nvl, "pcounters", 2 * 2 * 3,
|
||||
pf_nvuint_64_array(nvl, "pcounters", 2 * 2 * 2,
|
||||
(uint64_t *)status->pcounters, NULL);
|
||||
pf_nvuint_64_array(nvl, "bcounters", 2 * 2,
|
||||
(uint64_t *)status->bcounters, NULL);
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ struct pfctl_status {
|
|||
struct pfctl_status_counters lcounters;
|
||||
struct pfctl_status_counters fcounters;
|
||||
struct pfctl_status_counters scounters;
|
||||
uint64_t pcounters[2][2][3];
|
||||
uint64_t pcounters[2][2][2];
|
||||
uint64_t bcounters[2][2];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue