Unbreak build without INET6.

Reported by:	Christopher N . Harrell <cnh@netvmg.com>
MFC after:	1 week
This commit is contained in:
ume 2001-11-03 20:47:50 +00:00
parent 0c094f30d4
commit 66d7b6370f

View File

@ -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);