HomeFreeBSD

pf: return PF_PASS/PF_DROP from pf_setup_pdesc()

Description

pf: return PF_PASS/PF_DROP from pf_setup_pdesc()

We returned 'PF_DROP' instead of '-1' in one case, which would lead to us
continuing the processing for an invalid packet.
This also aligns us closer to OpenBSD, and reduces the odds of future similar
mixups.

MFC after: 3 days
Sponsored by: Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 5d210f396e3f00698caa45077330dea8ffe979b5)

Details

Provenance
kpAuthored on Thu, Oct 2, 2:55 PM
Parents
rG48cbd5698d9b: pf: fix possibe SCTP panic
Branches
Unknown
Tags
Unknown