Savely remove a chunk from the control queue.
This bug was found by Coverity scanning the usrsctp library. MFC after: 3 days
This commit is contained in:
parent
141bf584e4
commit
6c2cfc0419
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323372
@ -3133,14 +3133,14 @@ sctp_handle_ecn_cwr(struct sctp_cwr_chunk *cp, struct sctp_tcb *stcb, struct sct
|
||||
* make sure that we have a covered ECNE in the control chunk part.
|
||||
* If so remove it.
|
||||
*/
|
||||
struct sctp_tmit_chunk *chk;
|
||||
struct sctp_tmit_chunk *chk, *nchk;
|
||||
struct sctp_ecne_chunk *ecne;
|
||||
int override;
|
||||
uint32_t cwr_tsn;
|
||||
|
||||
cwr_tsn = ntohl(cp->tsn);
|
||||
override = cp->ch.chunk_flags & SCTP_CWR_REDUCE_OVERRIDE;
|
||||
TAILQ_FOREACH(chk, &stcb->asoc.control_send_queue, sctp_next) {
|
||||
TAILQ_FOREACH_SAFE(chk, &stcb->asoc.control_send_queue, sctp_next, nchk) {
|
||||
if (chk->rec.chunk_id.id != SCTP_ECN_ECHO) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user