]> 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:59:31 +0000 (20:59 -0700)
commit931fb0359e2b643a76a40b90883a1ba1d3cac3cd
tree15b11bcffef307bb5514351cfd40f1cf53616dfe
parente6eed7d7bc806c26e52eb0fe6c1c7f7f23eb3ea6
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