[Bug 274915] panic immediately on loading ruleset, in pf_ioctl_addrule sha #4ffe410
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 08 Nov 2023 21:56:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274915
--- Comment #7 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=a6246a50b63450d0fe34e3429807bd5aba8cc2ac
commit a6246a50b63450d0fe34e3429807bd5aba8cc2ac
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2023-11-08 14:06:15 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2023-11-08 20:58:52 +0000
pf: fix double free if pf_ioctl_addrule() fails
If pf_ioctl_addrule() returns an error it will have freed the rule
itself. There's no need for the caller to free it again.
PR: 274915
Reported by: Dave Cottlehuber <dch@FreeBSD.org>
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
sys/netpfil/pf/pf_nl.c | 3 ---
1 file changed, 3 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.