fix compilation w/o INET6

Noticed by:	"James E. Flemer" <jflemer@acm.jhu.edu>
This commit is contained in:
sam 2003-02-28 20:06:29 +00:00
parent a5517663c3
commit 69511ce277

View File

@ -289,8 +289,12 @@ ipsec_getpolicybysock(m, dir, inp, error)
/* set spidx in pcb */
if (inp->inp_vflag & INP_IPV6PROTO) {
#ifdef INET6
*error = ipsec6_setspidx_in6pcb(m, inp);
pcbsp = inp->in6p_sp;
#else
*error = EINVAL; /* should not happen */
#endif
} else {
*error = ipsec4_setspidx_inpcb(m, inp);
pcbsp = inp->inp_sp;