1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:42:48 +00:00

fix compilation w/o INET6

Noticed by:	"James E. Flemer" <jflemer@acm.jhu.edu>
This commit is contained in:
Sam Leffler 2003-02-28 20:06:29 +00:00
parent 0bc60d9734
commit 595064e871
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111682

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;