svn commit: r364626 - stable/12/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Mon Aug 24 08:35:14 UTC 2020
Author: tuexen
Date: Mon Aug 24 08:35:13 2020
New Revision: 364626
URL: https://svnweb.freebsd.org/changeset/base/364626
Log:
MFC r362722:
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.
Modified:
stable/12/sys/netinet/sctp_input.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/netinet/sctp_input.c
==============================================================================
--- stable/12/sys/netinet/sctp_input.c Mon Aug 24 08:33:32 2020 (r364625)
+++ stable/12/sys/netinet/sctp_input.c Mon Aug 24 08:35:13 2020 (r364626)
@@ -5178,7 +5178,11 @@ process_control_chunks:
default:
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;
int len;
More information about the svn-src-all
mailing list