Unbreak build without INET6.

Reported by:	Christopher N . Harrell <cnh@netvmg.com>
MFC after:	1 week
This commit is contained in:
Hajimu UMEMOTO 2001-11-03 20:47:50 +00:00
parent 9ea6970784
commit 794ffde89e

View File

@ -584,11 +584,13 @@ key_gettunnel(osrc, odst, isrc, idst)
return NULL; return NULL;
ip4_def_policy.refcnt++; ip4_def_policy.refcnt++;
return &ip4_def_policy; return &ip4_def_policy;
#ifdef INET6
case PF_INET6: case PF_INET6:
if (ip6_def_policy.policy == IPSEC_POLICY_DISCARD) if (ip6_def_policy.policy == IPSEC_POLICY_DISCARD)
return NULL; return NULL;
ip6_def_policy.refcnt++; ip6_def_policy.refcnt++;
return &ip6_def_policy; return &ip6_def_policy;
#endif
default: default:
printf("invalid protocol family %d\n.", printf("invalid protocol family %d\n.",
isrc->sa_family); isrc->sa_family);