From 98f04e431e8e5a714a6335ae853f3cb7fb416495 Mon Sep 17 00:00:00 2001 From: Michael Tuexen Date: Tue, 14 Aug 2018 08:33:47 +0000 Subject: [PATCH] Use a macro to set the assoc state. I missed this in r337706. --- sys/netinet6/sctp6_usrreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet6/sctp6_usrreq.c b/sys/netinet6/sctp6_usrreq.c index a49cbdf0cf57..33cea2399ca7 100644 --- a/sys/netinet6/sctp6_usrreq.c +++ b/sys/netinet6/sctp6_usrreq.c @@ -919,7 +919,7 @@ sctp6_connect(struct socket *so, struct sockaddr *addr, struct thread *p) /* 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 */