diff options
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r-- | net/ipv6/udp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index d79fa6724451..20d2ffc15f0d 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c | |||
@@ -946,11 +946,8 @@ do_udp_sendmsg: | |||
946 | hlimit = ip6_dst_hoplimit(dst); | 946 | hlimit = ip6_dst_hoplimit(dst); |
947 | } | 947 | } |
948 | 948 | ||
949 | if (tclass < 0) { | 949 | if (tclass < 0) |
950 | tclass = np->tclass; | 950 | tclass = np->tclass; |
951 | if (tclass < 0) | ||
952 | tclass = 0; | ||
953 | } | ||
954 | 951 | ||
955 | if (msg->msg_flags&MSG_CONFIRM) | 952 | if (msg->msg_flags&MSG_CONFIRM) |
956 | goto do_confirm; | 953 | goto do_confirm; |