mirror of
https://github.com/opnsense/src.git
synced 2026-02-14 00:04:14 -05:00
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
1 changed files with 1 additions and 4 deletions
|
|
@ -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 a new issue