blackhole(4): fix operator precedence

Fixes:	3ea9a7cf7b
This commit is contained in:
Gleb Smirnoff 2022-06-27 17:52:19 -07:00
parent d8f3ef8f54
commit ad3ad06477

View File

@ -919,7 +919,7 @@ tcp_input_with_port(struct mbuf **mp, int *offp, int proto, uint16_t port)
* completely ignore the segment and drop it.
*/
if (((V_blackhole == 1 && (thflags & TH_SYN)) ||
V_blackhole == 2) && (V_blackhole_local ||
V_blackhole == 2) && (V_blackhole_local || (
#ifdef INET6
isipv6 ? !in6_localaddr(&ip6->ip6_src) :
#endif
@ -928,7 +928,7 @@ tcp_input_with_port(struct mbuf **mp, int *offp, int proto, uint16_t port)
#else
true
#endif
))
)))
goto dropunlock;
rstreason = BANDLIM_RST_CLOSEDPORT;