HomeFreeBSD

pf: fix double free if pf_ioctl_addrule() fails

Description

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

Details

Provenance
kpAuthored on Nov 8 2023, 2:06 PM
Parents
rG85247ee6a2ba: tcpdump: decode pfsync packets on network interfaces
Branches
Unknown
Tags
Unknown