Date: Sat, 21 Nov 2015 16:32:14 +0000 (UTC) From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r291138 - head/sys/netinet Message-ID: <201511211632.tALGWE3H090401@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tuexen Date: Sat Nov 21 16:32:14 2015 New Revision: 291138 URL: https://svnweb.freebsd.org/changeset/base/291138 Log: Clear the so_pcb pointer in case of ipsec_init_policy() fails. MFC after: 1 week Modified: head/sys/netinet/sctp_usrreq.c Modified: head/sys/netinet/sctp_usrreq.c ============================================================================== --- head/sys/netinet/sctp_usrreq.c Sat Nov 21 16:25:09 2015 (r291137) +++ head/sys/netinet/sctp_usrreq.c Sat Nov 21 16:32:14 2015 (r291138) @@ -537,9 +537,10 @@ try_again: SCTP_INP_WUNLOCK(inp); } } + so->so_pcb = NULL; return (error); } -#endif /* IPSEC */ +#endif SCTP_INP_WUNLOCK(inp); return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511211632.tALGWE3H090401>