Index: sys/netinet/tcp_hostcache.c =================================================================== --- sys/netinet/tcp_hostcache.c +++ sys/netinet/tcp_hostcache.c @@ -437,8 +437,10 @@ { struct hc_metrics *hc_entry; - if (!V_tcp_use_hostcache) + if (!V_tcp_use_hostcache) { + bzero(hc_metrics_lite, sizeof(*hc_metrics_lite)); return; + } /* * Find the right bucket. Index: sys/netinet/tcp_input.c =================================================================== --- sys/netinet/tcp_input.c +++ sys/netinet/tcp_input.c @@ -372,7 +372,7 @@ void cc_conn_init(struct tcpcb *tp) { - struct hc_metrics_lite metrics; + struct hc_metrics_lite metrics = { 0 }; struct inpcb *inp = tp->t_inpcb; u_int maxseg; int rtt; @@ -3507,7 +3507,7 @@ int mss = 0; uint32_t maxmtu = 0; struct inpcb *inp = tp->t_inpcb; - struct hc_metrics_lite metrics; + struct hc_metrics_lite metrics = { 0 }; #ifdef INET6 int isipv6 = ((inp->inp_vflag & INP_IPV6) != 0) ? 1 : 0; size_t min_protoh = isipv6 ?