The branch main has been updated by glebius:

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

commit 2750d957870aa45661e94cb6f7c5f1bfea52bf41
Author:     Gleb Smirnoff <[email protected]>
AuthorDate: 2026-05-26 17:23:32 +0000
Commit:     Gleb Smirnoff <[email protected]>
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];

Reply via email to