diff options
author | ume <ume@FreeBSD.org> | 2001-07-26 19:19:49 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2001-07-26 19:19:49 +0000 |
commit | e8ae8d1bf4f1b0d1984c5a45d58d8994cbee6d48 (patch) | |
tree | 8e3bd5ef7aeeff3d2485710cc7d3d4eeb27b0586 /sys/netinet/tcp_usrreq.c | |
parent | 0a0f3b54c3fa214be9208289900f9ef8ff4e3284 (diff) | |
download | FreeBSD-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/tcp_usrreq.c')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index 1bb7e64..c28875e 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1028,18 +1028,6 @@ tcp_attach(so, p) if (error) return (error); inp = sotoinpcb(so); -#ifdef IPSEC - error = ipsec_init_policy(so, &inp->inp_sp); - if (error) { -#ifdef INET6 - if (isipv6) - in6_pcbdetach(inp); - else -#endif - in_pcbdetach(inp); - return (error); - } -#endif /*IPSEC*/ #ifdef INET6 if (isipv6) { inp->inp_vflag |= INP_IPV6; |