diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2026-05-26 17:23:32 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2026-05-26 17:23:32 +0000 |
| commit | 2750d957870aa45661e94cb6f7c5f1bfea52bf41 (patch) | |
| tree | d85321e3cc5731c91c57839fd5a91af04f5b0986 | |
| parent | 895a0ae67fe2c0c45b68991f1bba0c62f4d00ad5 (diff) | |
tcp: fix TCP_ACCOUNTING build
The uninitialized timeval was discovered by the new clang.
| -rw-r--r-- | sys/netinet/tcp_log_buf.c | 1 |
1 files changed, 1 insertions, 0 deletions
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]; |
