summaryrefslogtreecommitdiffstats
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2001-07-26 19:19:49 +0000
committerume <ume@FreeBSD.org>2001-07-26 19:19:49 +0000
commite8ae8d1bf4f1b0d1984c5a45d58d8994cbee6d48 (patch)
tree8e3bd5ef7aeeff3d2485710cc7d3d4eeb27b0586 /sys/netinet/udp_usrreq.c
parent0a0f3b54c3fa214be9208289900f9ef8ff4e3284 (diff)
downloadFreeBSD-src-e8ae8d1bf4f1b0d1984c5a45d58d8994cbee6d48.zip
FreeBSD-src-e8ae8d1bf4f1b0d1984c5a45d58d8994cbee6d48.tar.gz
move ipsec security policy allocation into in_pcballoc, before
making pcbs available to the outside world. otherwise, we will see inpcb without ipsec security policy attached (-> panic() in ipsec.c). Obtained from: KAME MFC after: 3 days
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 06f049c..157057b 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -821,13 +821,6 @@ udp_attach(struct socket *so, int proto, struct proc *p)
inp = (struct inpcb *)so->so_pcb;
inp->inp_vflag |= INP_IPV4;
inp->inp_ip_ttl = ip_defttl;
-#ifdef IPSEC
- error = ipsec_init_policy(so, &inp->inp_sp);
- if (error != 0) {
- in_pcbdetach(inp);
- return error;
- }
-#endif /*IPSEC*/
return 0;
}
OpenPOWER on IntegriCloud