提交 5c127c58 编写于 作者: D David S. Miller

[TCP]: 'dst' can be NULL in tcp_rto_min()

Reported by Rick Jones.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 88282c6e
......@@ -560,7 +560,7 @@ static u32 tcp_rto_min(struct sock *sk)
struct dst_entry *dst = __sk_dst_get(sk);
u32 rto_min = TCP_RTO_MIN;
if (dst_metric_locked(dst, RTAX_RTO_MIN))
if (dst && dst_metric_locked(dst, RTAX_RTO_MIN))
rto_min = dst->metrics[RTAX_RTO_MIN-1];
return rto_min;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册