]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ipfilter: Avoid a null if-then-else blocks
authorCy Schubert <cy@FreeBSD.org>
Wed, 22 Sep 2021 04:58:08 +0000 (21:58 -0700)
committerCy Schubert <cy@FreeBSD.org>
Mon, 4 Oct 2021 03:56:58 +0000 (20:56 -0700)
commitffcdbc35a64e3550d8a45609bf3237c2549badfc
tree74490e064b616bf6e2375a96435d20bdcb4aad7a
parentc39bfe47139bac99e5519c22ccde42b2660b6500
ipfilter: Avoid a null if-then-else blocks

When WITHOUT_INET6 is selected we generate a null if-then-else blocks
due to incorrect placment of #if statments. Move the #if statements
reducing unnecessary runtime comparisons WITHOUT_INET6.

(cherry picked from commit 73db3b64f167972db3ee3f780cecb439b09492b1)
sys/contrib/ipfilter/netinet/ip_ftp_pxy.c
sys/contrib/ipfilter/netinet/ip_proxy.c