From 5103dcf30b02b769be3d3d8a4401e178285b7ce0 Mon Sep 17 00:00:00 2001 From: tuexen Date: Sat, 16 Jan 2016 18:15:41 +0000 Subject: [PATCH] MFC r291138: Clear the so_pcb pointer in case of ipsec_init_policy() fails. git-svn-id: svn://svn.freebsd.org/base/stable/10@294185 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/netinet/sctp_usrreq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c index bd1b81a51..fa816c1e8 100644 --- a/sys/netinet/sctp_usrreq.c +++ b/sys/netinet/sctp_usrreq.c @@ -537,9 +537,10 @@ sctp_attach(struct socket *so, int proto SCTP_UNUSED, struct thread *p SCTP_UNUS SCTP_INP_WUNLOCK(inp); } } + so->so_pcb = NULL; return (error); } -#endif /* IPSEC */ +#endif SCTP_INP_WUNLOCK(inp); return (0); } -- 2.45.0