mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Unbreak build without INET6.
Reported by: Christopher N . Harrell <cnh@netvmg.com> MFC after: 1 week
This commit is contained in:
parent
9ea6970784
commit
794ffde89e
1 changed files with 2 additions and 0 deletions
|
|
@ -584,11 +584,13 @@ key_gettunnel(osrc, odst, isrc, idst)
|
|||
return NULL;
|
||||
ip4_def_policy.refcnt++;
|
||||
return &ip4_def_policy;
|
||||
#ifdef INET6
|
||||
case PF_INET6:
|
||||
if (ip6_def_policy.policy == IPSEC_POLICY_DISCARD)
|
||||
return NULL;
|
||||
ip6_def_policy.refcnt++;
|
||||
return &ip6_def_policy;
|
||||
#endif
|
||||
default:
|
||||
printf("invalid protocol family %d\n.",
|
||||
isrc->sa_family);
|
||||
|
|
|
|||
Loading…
Reference in a new issue