kern/137795: commit references a PR
dfilter service
dfilter at FreeBSD.ORG
Tue Aug 18 20:00:14 UTC 2009
The following reply was made to PR kern/137795; it has been noted by GNATS.
From: dfilter at FreeBSD.ORG (dfilter service)
To: bug-followup at FreeBSD.org
Cc:
Subject: Re: kern/137795: commit references a PR
Date: Tue, 18 Aug 2009 19:59:03 +0000 (UTC)
Author: tuexen
Date: Tue Aug 18 19:58:49 2009
New Revision: 196364
URL: http://svn.freebsd.org/changeset/base/196364
Log:
Fix a crash when using one-to-one stlye socket in non-blocking
mode and there is no listening server.
PR: 137795
Approved by: re, rrs (mentor)
MFC after:immediately.
Modified:
head/sys/netinet/sctp_output.c
Modified: head/sys/netinet/sctp_output.c
==============================================================================
--- head/sys/netinet/sctp_output.c Tue Aug 18 16:23:09 2009 (r196363)
+++ head/sys/netinet/sctp_output.c Tue Aug 18 19:58:49 2009 (r196364)
@@ -12464,7 +12464,8 @@ sctp_lower_sosend(struct socket *so,
error = ENOTCONN;
goto out_unlocked;
}
- hold_tcblock = 0;
+ SCTP_TCB_LOCK(stcb);
+ hold_tcblock = 1;
SCTP_INP_RUNLOCK(inp);
if (addr) {
/* Must locate the net structure if addr given */
_______________________________________________
svn-src-all at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"
More information about the freebsd-net
mailing list