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
@ -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 New Issue
Block a user