diff options
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r-- | net/ipv6/udp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 44fc4e3d661f..f3893e897f72 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c | |||
@@ -1243,9 +1243,6 @@ do_udp_sendmsg: | |||
1243 | if (tclass < 0) | 1243 | if (tclass < 0) |
1244 | tclass = np->tclass; | 1244 | tclass = np->tclass; |
1245 | 1245 | ||
1246 | if (dontfrag < 0) | ||
1247 | dontfrag = np->dontfrag; | ||
1248 | |||
1249 | if (msg->msg_flags&MSG_CONFIRM) | 1246 | if (msg->msg_flags&MSG_CONFIRM) |
1250 | goto do_confirm; | 1247 | goto do_confirm; |
1251 | back_from_confirm: | 1248 | back_from_confirm: |
@@ -1264,6 +1261,8 @@ back_from_confirm: | |||
1264 | up->pending = AF_INET6; | 1261 | up->pending = AF_INET6; |
1265 | 1262 | ||
1266 | do_append_data: | 1263 | do_append_data: |
1264 | if (dontfrag < 0) | ||
1265 | dontfrag = np->dontfrag; | ||
1267 | up->len += ulen; | 1266 | up->len += ulen; |
1268 | getfrag = is_udplite ? udplite_getfrag : ip_generic_getfrag; | 1267 | getfrag = is_udplite ? udplite_getfrag : ip_generic_getfrag; |
1269 | err = ip6_append_data(sk, getfrag, msg->msg_iov, ulen, | 1268 | err = ip6_append_data(sk, getfrag, msg->msg_iov, ulen, |