When processing an incoming ABORT, SHUTDOWN_COMPLETE or ERROR (NAT related)
chunk, take always the T-bit into account, when checking the verification tag. MFC after: 3 days
This commit is contained in:
parent
2fc5db16ed
commit
5db47b3def
@ -4568,8 +4568,10 @@ __attribute__((noinline))
|
|||||||
if ((ch->chunk_type == SCTP_ABORT_ASSOCIATION) ||
|
if ((ch->chunk_type == SCTP_ABORT_ASSOCIATION) ||
|
||||||
(ch->chunk_type == SCTP_SHUTDOWN_COMPLETE) ||
|
(ch->chunk_type == SCTP_SHUTDOWN_COMPLETE) ||
|
||||||
(ch->chunk_type == SCTP_PACKET_DROPPED)) {
|
(ch->chunk_type == SCTP_PACKET_DROPPED)) {
|
||||||
if ((vtag_in == asoc->my_vtag) ||
|
/* Take the T-bit always into account. */
|
||||||
((ch->chunk_flags & SCTP_HAD_NO_TCB) &&
|
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) &&
|
||||||
(vtag_in == asoc->peer_vtag))) {
|
(vtag_in == asoc->peer_vtag))) {
|
||||||
/* this is valid */
|
/* this is valid */
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user