svn commit: r294185 - stable/10/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Sat Jan 16 18:15:43 UTC 2016
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);
}
More information about the svn-src-stable
mailing list