Don't send packets containing ERROR chunks in response to unknown
chunks when being in a state where the verification tag to be used is not known yet. MFC after: 1 week
This commit is contained in:
parent
f2f66ef6d2
commit
e99ce3eac5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362722
@ -5178,7 +5178,11 @@ sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length,
|
|||||||
default:
|
default:
|
||||||
unknown_chunk:
|
unknown_chunk:
|
||||||
/* it's an unknown chunk! */
|
/* it's an unknown chunk! */
|
||||||
if ((ch->chunk_type & 0x40) && (stcb != NULL)) {
|
if ((ch->chunk_type & 0x40) &&
|
||||||
|
(stcb != NULL) &&
|
||||||
|
(SCTP_GET_STATE(stcb) != SCTP_STATE_EMPTY) &&
|
||||||
|
(SCTP_GET_STATE(stcb) != SCTP_STATE_INUSE) &&
|
||||||
|
(SCTP_GET_STATE(stcb) != SCTP_STATE_COOKIE_WAIT)) {
|
||||||
struct sctp_gen_error_cause *cause;
|
struct sctp_gen_error_cause *cause;
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user