Skip to content

Commit

Permalink
TCP RACK, BBR: ensure return value is always ininitialized
Browse files Browse the repository at this point in the history
Do not return an uninitialized value from ctf_do_queued_segments()
in case no packets are actually processed (all are skipped).

Reviewed by:		rrs
CID:			1523774
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D48217

(cherry picked from commit b5739c8)
  • Loading branch information
tuexen committed Feb 5, 2025
1 parent ac863fd commit 60682a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/netinet/tcp_stacks/rack_bbr_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ ctf_process_inbound_raw(struct tcpcb *tp, struct socket *so, struct mbuf *m, int
if (no_vn == 0) {
CURVNET_RESTORE();
}
return(retval);
return (0);
}

int
Expand Down

0 comments on commit 60682a0

Please sign in to comment.