mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Fix for a bug in tcp_sack_option() causing crashes.
Submitted by: Noritoshi Demizu, Mohan Srinivasan. Approved by: re (scottl blanket SACK)
This commit is contained in:
parent
3adc17c503
commit
9004ded9df
1 changed files with 1 additions and 2 deletions
|
|
@ -474,8 +474,7 @@ tcp_sack_option(struct tcpcb *tp, struct tcphdr *th, u_char *cp, int optlen)
|
|||
* Since the incoming sack blocks are sorted, we can process them
|
||||
* making one sweep of the scoreboard.
|
||||
*/
|
||||
while (sblkp - sack_blocks >= 0) {
|
||||
KASSERT(cur != NULL, ("cur != NULL"));
|
||||
while (sblkp - sack_blocks >= 0 && cur != NULL) {
|
||||
if (SEQ_GEQ(sblkp->start, cur->end)) {
|
||||
/*
|
||||
* SACKs data beyond the current hole.
|
||||
|
|
|
|||
Loading…
Reference in a new issue