mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Ensure we are not dereferencing a NULL pointer.
This was found by Coverity scanning the usrsctp stack (CID 203808). MFC after: 3 days
This commit is contained in:
parent
b23ddc5855
commit
67e8b08bbe
1 changed files with 3 additions and 1 deletions
|
|
@ -3621,7 +3621,9 @@ sctp_strike_gap_ack_chunks(struct sctp_tcb *stcb, struct sctp_association *asoc,
|
|||
SCTP_SO_NOT_LOCKED);
|
||||
}
|
||||
/* Make sure to flag we had a FR */
|
||||
tp1->whoTo->net_ack++;
|
||||
if (tp1->whoTo != NULL) {
|
||||
tp1->whoTo->net_ack++;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue