Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2026 17:24:09 +0000
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 2750d957870a - main - tcp: fix TCP_ACCOUNTING build
Message-ID:  <6a15d739.3b1c9.7a9206d2@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by glebius:

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

commit 2750d957870aa45661e94cb6f7c5f1bfea52bf41
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2026-05-26 17:23:32 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2026-05-26 17:23:32 +0000

    tcp: fix TCP_ACCOUNTING build
    
    The uninitialized timeval was discovered by the new clang.
---
 sys/netinet/tcp_log_buf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/netinet/tcp_log_buf.c b/sys/netinet/tcp_log_buf.c
index 3e5955e5db4e..35fa0b56a9c7 100644
--- a/sys/netinet/tcp_log_buf.c
+++ b/sys/netinet/tcp_log_buf.c
@@ -1449,6 +1449,7 @@ tcp_log_tcpcbfini(struct tcpcb *tp)
 		int i;
 
 		memset(&log, 0, sizeof(log));
+		microuptime(&tv);
 		if (tp->t_flags2 & TF2_TCP_ACCOUNTING) {
 			for (i = 0; i < TCP_NUM_CNT_COUNTERS; i++) {
 				log.u_raw.u64_flex[i] = tp->tcp_cnt_counters[i];


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a15d739.3b1c9.7a9206d2>