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
MFC after:		1 week
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D48217
  • Loading branch information
tuexen committed Dec 30, 2024
1 parent 16e8e99 commit b5739c8
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 @@ -478,7 +478,7 @@ ctf_process_inbound_raw(struct tcpcb *tp, struct mbuf *m, int has_pkt)
if (no_vn == 0) {
CURVNET_RESTORE();
}
return(retval);
return (0);
}

int
Expand Down

0 comments on commit b5739c8

Please sign in to comment.