svn commit: r337738 - head/sys/netinet6

Michael Tuexen tuexen at FreeBSD.org
Tue Aug 14 08:33:48 UTC 2018


Author: tuexen
Date: Tue Aug 14 08:33:47 2018
New Revision: 337738
URL: https://svnweb.freebsd.org/changeset/base/337738

Log:
  Use a macro to set the assoc state. I missed this in r337706.

Modified:
  head/sys/netinet6/sctp6_usrreq.c

Modified: head/sys/netinet6/sctp6_usrreq.c
==============================================================================
--- head/sys/netinet6/sctp6_usrreq.c	Tue Aug 14 08:32:33 2018	(r337737)
+++ head/sys/netinet6/sctp6_usrreq.c	Tue Aug 14 08:33:47 2018	(r337738)
@@ -919,7 +919,7 @@ sctp6_connect(struct socket *so, struct sockaddr *addr
 		/* Set the connected flag so we can queue data */
 		soisconnecting(so);
 	}
-	stcb->asoc.state = SCTP_STATE_COOKIE_WAIT;
+	SCTP_SET_STATE(stcb, SCTP_STATE_COOKIE_WAIT);
 	(void)SCTP_GETTIME_TIMEVAL(&stcb->asoc.time_entered);
 
 	/* initialize authentication parameters for the assoc */


More information about the svn-src-all mailing list