Date: Sat, 16 Jan 2016 18:15:41 +0000 (UTC) From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r294185 - stable/10/sys/netinet Message-ID: <201601161815.u0GIFfPK060284@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tuexen Date: Sat Jan 16 18:15:41 2016 New Revision: 294185 URL: https://svnweb.freebsd.org/changeset/base/294185 Log: MFC r291138: Clear the so_pcb pointer in case of ipsec_init_policy() fails. Modified: stable/10/sys/netinet/sctp_usrreq.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/netinet/sctp_usrreq.c ============================================================================== --- stable/10/sys/netinet/sctp_usrreq.c Sat Jan 16 18:13:33 2016 (r294184) +++ stable/10/sys/netinet/sctp_usrreq.c Sat Jan 16 18:15:41 2016 (r294185) @@ -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?201601161815.u0GIFfPK060284>