diff options
author | tuexen <tuexen@FreeBSD.org> | 2012-11-26 16:43:32 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2012-11-26 16:43:32 +0000 |
commit | 926b939df376ec802c9e801920628af237b6100a (patch) | |
tree | 1c6641e0cdba2e48a0c53b0fd37dc7f107de071e /sys/netinet/sctp_pcb.c | |
parent | 7b9ba9c9b6752fb86ed6ebfec7149b17dcc6b3ea (diff) | |
download | FreeBSD-src-926b939df376ec802c9e801920628af237b6100a.zip FreeBSD-src-926b939df376ec802c9e801920628af237b6100a.tar.gz |
Find the endpoint for an incoming packet also if the endpoint
comes from sctp_peeloff().
MFC after: 3 days
Diffstat (limited to 'sys/netinet/sctp_pcb.c')
-rw-r--r-- | sys/netinet/sctp_pcb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index fb32635..b2703cd 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -1226,7 +1226,8 @@ sctp_findassociation_ep_addr(struct sctp_inpcb **inp_p, struct sockaddr *remote, SCTP_TCB_UNLOCK(locked_tcb); } SCTP_INP_INFO_RLOCK(); - if (inp->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) { + if ((inp->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || + (inp->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL)) { /*- * Now either this guy is our listener or it's the * connector. If it is the one that issued the connect, then |