]> 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>
Fri, 24 Sep 2021 18:41:02 +0000 (11:41 -0700)
commit73db3b64f167972db3ee3f780cecb439b09492b1
tree32612b8ea8a61b0e0a2371da9522e022a9d17e25
parent14a634df53d2de65233e490d0bfa806a05baff7c
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.

MFC after: 1 week
sys/contrib/ipfilter/netinet/ip_ftp_pxy.c
sys/contrib/ipfilter/netinet/ip_proxy.c