Coalesce two consecutive #ifdef IPSEC blocks.
Move the skip_ipsec: label below the goto as we can never have ipsecrt set if we get to that label so there is no need to check. MFC after: 2 weeks
This commit is contained in:
parent
e6493bbebf
commit
39f046dac2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=187949
@ -350,12 +350,9 @@ ip6_forward(struct mbuf *m, int srcrt)
|
||||
if (dst != NULL && rt != NULL)
|
||||
ipsecrt = 1;
|
||||
}
|
||||
skip_ipsec:
|
||||
#endif /* IPSEC */
|
||||
|
||||
#ifdef IPSEC
|
||||
if (ipsecrt)
|
||||
goto skip_routing;
|
||||
skip_ipsec:
|
||||
#endif
|
||||
|
||||
dst = (struct sockaddr_in6 *)&V_ip6_forward_rt.ro_dst;
|
||||
|
Loading…
Reference in New Issue
Block a user