git: c7e81cc04369 - main - TCP BBR: do not log an uninitialized value

From: Michael Tuexen <tuexen_at_FreeBSD.org>
Date: Thu, 02 Jan 2025 15:19:18 UTC
The branch main has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=c7e81cc04369dd7bdd00519109efe9d75f53375c

commit c7e81cc04369dd7bdd00519109efe9d75f53375c
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2025-01-02 15:17:05 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2025-01-02 15:17:05 +0000

    TCP BBR: do not log an uninitialized value
    
    Reviewed by:            rrs
    CID:                    1523789
    MFC after:              1 week
    Sponsored by:           Netflix, Inc.
    Differential Revision:  https://reviews.freebsd.org/D48281
---
 sys/netinet/tcp_stacks/bbr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netinet/tcp_stacks/bbr.c b/sys/netinet/tcp_stacks/bbr.c
index c46a1711c34a..fa9953fcd0a3 100644
--- a/sys/netinet/tcp_stacks/bbr.c
+++ b/sys/netinet/tcp_stacks/bbr.c
@@ -607,7 +607,7 @@ activate_rxt:
 			TCPT_RANGESET_NOSLOP(to, tov,
 			    (bbr->r_ctl.rc_min_rto_ms * MS_IN_USEC),
 			    (bbr->rc_max_rto_sec * USECS_IN_SECOND));
-			bbr_log_timer_var(bbr, 2, cts, 0, srtt, 0, to);
+			bbr_log_timer_var(bbr, 2, cts, 0, bbr_get_rtt(bbr, BBR_SRTT), 0, to);
 			return (to);
 		}
 		return (0);