diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-08-31 17:39:44 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-08-31 17:39:44 -0400 |
commit | 5c127c58ae9bf196d787815b1bd6b0aec5aee816 (patch) | |
tree | 9edf6e04fe5ac494d024da4f7581ce6afaa44e63 /net/ipv4 | |
parent | 88282c6ecf0dacefda6090b0289d35e8a3cc6221 (diff) |
[TCP]: 'dst' can be NULL in tcp_rto_min()
Reported by Rick Jones.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 1ee72127462b..bbad2cdb74b7 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -560,7 +560,7 @@ static u32 tcp_rto_min(struct sock *sk) | |||
560 | struct dst_entry *dst = __sk_dst_get(sk); | 560 | struct dst_entry *dst = __sk_dst_get(sk); |
561 | u32 rto_min = TCP_RTO_MIN; | 561 | u32 rto_min = TCP_RTO_MIN; |
562 | 562 | ||
563 | if (dst_metric_locked(dst, RTAX_RTO_MIN)) | 563 | if (dst && dst_metric_locked(dst, RTAX_RTO_MIN)) |
564 | rto_min = dst->metrics[RTAX_RTO_MIN-1]; | 564 | rto_min = dst->metrics[RTAX_RTO_MIN-1]; |
565 | return rto_min; | 565 | return rto_min; |
566 | } | 566 | } |