Ensure that the accept ABORT chunks with the T-bit set only the

a non-zero matching peer tag is provided.

MFC after:	1 week
This commit is contained in:
tuexen 2017-10-05 13:29:54 +00:00
parent e521cc6466
commit ca2b4c393c

View File

@ -4673,6 +4673,7 @@ sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length,
if ((((ch->chunk_flags & SCTP_HAD_NO_TCB) == 0) &&
(vtag_in == asoc->my_vtag)) ||
(((ch->chunk_flags & SCTP_HAD_NO_TCB) == SCTP_HAD_NO_TCB) &&
(asoc->peer_vtag != htonl(0)) &&
(vtag_in == asoc->peer_vtag))) {
/* this is valid */
} else {