HomeFreeBSD

MFC 874b1a35486b570513680c3d456b062ba097e1d9:

Description

MFC 874b1a35486b570513680c3d456b062ba097e1d9:

ipfilter: simplify ipf_proxy_check() return codes

ipf_proxy_check() returns -1 for an error and 0 or 1 for success.
ipf_proxy_check()'s callers check for error and if the return code
is 0, they change it to 1 prior to returning to their callers. Simply
by returning -1 or 1 we reduce complexity and cycles burned changing
0 to 1.

(cherry picked from commit 874b1a35486b570513680c3d456b062ba097e1d9)

Details

Provenance
cyAuthored on Mar 23 2021, 3:11 AM
Parents
rGeb008a6793db: MFC 4e38478c595a:
Branches
Unknown
Tags
Unknown