diff options
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r-- | net/ipv6/udp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 5f5d1218c34e..593d3efadaf9 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c | |||
@@ -792,9 +792,7 @@ do_udp_sendmsg: | |||
792 | else | 792 | else |
793 | hlimit = np->hop_limit; | 793 | hlimit = np->hop_limit; |
794 | if (hlimit < 0) | 794 | if (hlimit < 0) |
795 | hlimit = dst_metric(dst, RTAX_HOPLIMIT); | 795 | hlimit = ip6_dst_hoplimit(dst); |
796 | if (hlimit < 0) | ||
797 | hlimit = ipv6_get_hoplimit(dst->dev); | ||
798 | } | 796 | } |
799 | 797 | ||
800 | if (tclass < 0) { | 798 | if (tclass < 0) { |