git: 1c8d9e1b05b0 - stable/13 - pf: fix set_prio after nv conversion
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 21 Feb 2022 09:18:46 UTC
The branch stable/13 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=1c8d9e1b05b02b4087f0ca4ccb3a1c9db0af7cd7 commit 1c8d9e1b05b02b4087f0ca4ccb3a1c9db0af7cd7 Author: Franco Fichtner <franco@opnsense.org> AuthorDate: 2022-02-14 19:26:39 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2022-02-21 09:18:24 +0000 pf: fix set_prio after nv conversion Reviewed by: kp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D34266 (cherry picked from commit 0143a6bb7f634c5984b34db1834313bdb47e6ccd) --- sys/netpfil/pf/pf_nv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netpfil/pf/pf_nv.c b/sys/netpfil/pf/pf_nv.c index 7bfcea7a47c4..e2af55af86e5 100644 --- a/sys/netpfil/pf/pf_nv.c +++ b/sys/netpfil/pf/pf_nv.c @@ -623,7 +623,7 @@ pf_nvrule_to_krule(const nvlist_t *nvl, struct pf_krule *rule) PFNV_CHK(pf_nvuint8(nvl, "flush", &rule->flush)); PFNV_CHK(pf_nvuint8(nvl, "prio", &rule->prio)); - PFNV_CHK(pf_nvuint8_array(nvl, "set_prio", &rule->prio, 2, NULL)); + PFNV_CHK(pf_nvuint8_array(nvl, "set_prio", rule->set_prio, 2, NULL)); if (nvlist_exists_nvlist(nvl, "divert")) { const nvlist_t *nvldivert = nvlist_get_nvlist(nvl, "divert"); @@ -803,7 +803,7 @@ pf_krule_to_nvrule(struct pf_krule *rule) nvlist_add_number(nvl, "flush", rule->flush); nvlist_add_number(nvl, "prio", rule->prio); - pf_uint8_array_nv(nvl, "set_prio", &rule->prio, 2); + pf_uint8_array_nv(nvl, "set_prio", rule->set_prio, 2); tmp = pf_divert_to_nvdivert(rule); if (tmp == NULL)