Don't use uninitialised stack memory if the sysctl variable
net.inet.tcp.hostcache.enable is set to 0. The bug resulted in using possibly a too small MSS value or wrong initial retransmission timer settings. Possibly the value used for ssthresh was also wrong. Submitted by: Richard Scheffenegger Reviewed by: Cheng Cui, rgrimes@, tuexen@ MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D23687
This commit is contained in:
parent
210e706631
commit
d5e7d9425f
@ -437,8 +437,10 @@ tcp_hc_get(struct in_conninfo *inc, struct hc_metrics_lite *hc_metrics_lite)
|
||||
{
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user