diff options
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r-- | net/ipv6/udp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index e671153b47b2..5cc8731eb55b 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c | |||
@@ -771,7 +771,9 @@ do_udp_sendmsg: | |||
771 | } | 771 | } |
772 | if (opt == NULL) | 772 | if (opt == NULL) |
773 | opt = np->opt; | 773 | opt = np->opt; |
774 | opt = fl6_merge_options(&opt_space, flowlabel, opt); | 774 | if (flowlabel) |
775 | opt = fl6_merge_options(&opt_space, flowlabel, opt); | ||
776 | opt = ipv6_fixup_options(&opt_space, opt); | ||
775 | 777 | ||
776 | fl->proto = IPPROTO_UDP; | 778 | fl->proto = IPPROTO_UDP; |
777 | ipv6_addr_copy(&fl->fl6_dst, daddr); | 779 | ipv6_addr_copy(&fl->fl6_dst, daddr); |