mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
sctp: don't provide uninitialized memory to process_chunk_drop()
Right now, the code in process_chunk_drop() does not look the
the corresponding fields.
Therefore, no functional change intended.
Reported by: Coverity Scan
CID: 1472476
(cherry picked from commit 83dcc7790b)
This commit is contained in:
parent
1776db67c3
commit
5678f3b366
1 changed files with 2 additions and 0 deletions
|
|
@ -4231,6 +4231,8 @@ sctp_handle_packet_dropped(struct sctp_pktdrop_chunk *cp,
|
|||
SCTP_STAT_INCR(sctps_pdrpmbda);
|
||||
}
|
||||
} else {
|
||||
desc.tsn_ifany = htonl(0);
|
||||
memset(desc.data_bytes, 0, SCTP_NUM_DB_TO_VERIFY);
|
||||
if (pktdrp_flags & SCTP_FROM_MIDDLE_BOX) {
|
||||
SCTP_STAT_INCR(sctps_pdrpmbct);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue