git: 826c58d6656c - main - pf: add missing unlock on error in DIOCCHANGERULE
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 May 2022 00:01:24 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=826c58d6656c62929af2d705a428921cfdfcb3ab commit 826c58d6656c62929af2d705a428921cfdfcb3ab Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2022-05-11 00:00:17 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2022-05-11 00:00:17 +0000 pf: add missing unlock on error in DIOCCHANGERULE Fixes: ff80dd034a8ca732 Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/netpfil/pf/pf_ioctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/netpfil/pf/pf_ioctl.c b/sys/netpfil/pf/pf_ioctl.c index 6b8d63b8bdce..8c3b9a423af1 100644 --- a/sys/netpfil/pf/pf_ioctl.c +++ b/sys/netpfil/pf/pf_ioctl.c @@ -3618,6 +3618,7 @@ DIOCGETRULENV_error: #undef ERROUT DIOCCHANGERULE_error: PF_RULES_WUNLOCK(); + PF_CONFIG_UNLOCK(); pf_krule_free(newrule); pf_kkif_free(kif); break;