diff options
Diffstat (limited to 'net/ipv6/ipv6_sockglue.c')
-rw-r--r-- | net/ipv6/ipv6_sockglue.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c index c11c76cab371..8e29fb1d1df6 100644 --- a/net/ipv6/ipv6_sockglue.c +++ b/net/ipv6/ipv6_sockglue.c | |||
@@ -904,9 +904,7 @@ static int do_ipv6_getsockopt(struct sock *sk, int level, int optname, | |||
904 | dst = sk_dst_get(sk); | 904 | dst = sk_dst_get(sk); |
905 | if (dst) { | 905 | if (dst) { |
906 | if (val < 0) | 906 | if (val < 0) |
907 | val = dst_metric(dst, RTAX_HOPLIMIT); | 907 | val = ip6_dst_hoplimit(dst); |
908 | if (val < 0) | ||
909 | val = ipv6_get_hoplimit(dst->dev); | ||
910 | dst_release(dst); | 908 | dst_release(dst); |
911 | } | 909 | } |
912 | if (val < 0) | 910 | if (val < 0) |