git: 5fbf11f70390 - main - sctp: fix typo introcuded in last commit
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 16 Apr 2022 17:56:26 UTC
The branch main has been updated by tuexen:
URL: https://cgit.FreeBSD.org/src/commit/?id=5fbf11f70390a043cba06ba893c897f32d005f5d
commit 5fbf11f70390a043cba06ba893c897f32d005f5d
Author: Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2022-04-16 17:55:33 +0000
Commit: Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2022-04-16 17:55:33 +0000
sctp: fix typo introcuded in last commit
MFC after: 3 days
---
sys/netinet/sctp_usrreq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c
index 65341796d197..8efe9d50b8f5 100644
--- a/sys/netinet/sctp_usrreq.c
+++ b/sys/netinet/sctp_usrreq.c
@@ -5136,7 +5136,7 @@ sctp_setopt(struct socket *so, int optname, void *optval, size_t optsize,
* style sockets.
*/
if (events->sctp_sender_dry_event) {
- if (((stcb->sctp_ep->sctp_flags & (SCTP_PCB_FLAGS_TCPTYPE | SCTP_PCB_FLAGS_IN_TCPPOOL)) != 0) &&
+ if (((inp->sctp_flags & (SCTP_PCB_FLAGS_TCPTYPE | SCTP_PCB_FLAGS_IN_TCPPOOL)) != 0) &&
!SCTP_IS_LISTENING(inp)) {
stcb = LIST_FIRST(&inp->sctp_asoc_list);
if (stcb != NULL) {