Page MenuHomeFreeBSD

D31921.diff
No OneTemporary

D31921.diff

diff --git a/sys/netinet/sctp_input.c b/sys/netinet/sctp_input.c
--- a/sys/netinet/sctp_input.c
+++ b/sys/netinet/sctp_input.c
@@ -679,9 +679,6 @@
if ((SCTP_GET_STATE(stcb) == SCTP_STATE_COOKIE_WAIT) ||
(SCTP_GET_STATE(stcb) == SCTP_STATE_COOKIE_ECHOED)) {
- SCTP_INP_INFO_RLOCK();
- new_vtag = sctp_select_a_tag(stcb->sctp_ep, stcb->sctp_ep->sctp_lport, stcb->rport, 1);
- SCTP_INP_INFO_RLOCK();
atomic_add_int(&stcb->asoc.refcnt, 1);
SCTP_TCB_UNLOCK(stcb);
SCTP_INP_INFO_WLOCK();
@@ -690,6 +687,7 @@
} else {
return (0);
}
+ new_vtag = sctp_select_a_tag(stcb->sctp_ep, stcb->sctp_ep->sctp_lport, stcb->rport, 1);
if (SCTP_GET_STATE(stcb) == SCTP_STATE_COOKIE_WAIT) {
/* generate a new vtag and send init */
LIST_REMOVE(stcb, sctp_asocs);

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 13, 10:01 PM (20 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15787828
Default Alt Text
D31921.diff (778 B)

Event Timeline