svn commit: r291138 - head/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Sat Nov 21 16:32:15 UTC 2015
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);
}
More information about the svn-src-all
mailing list