]> err.no Git - linux-2.6/blobdiff - net/ipv6/udp.c
[IPV6]: Fix sending extension headers before and including routing header.
[linux-2.6] / net / ipv6 / udp.c
index bf9519341fd30ad28a0b9652d09bcd7628765dc4..e2b87cc68b7b61ac6c9814867257bbdb9bfbee4f 100644 (file)
@@ -778,7 +778,9 @@ do_udp_sendmsg:
        }
        if (opt == NULL)
                opt = np->opt;
-       opt = fl6_merge_options(&opt_space, flowlabel, opt);
+       if (flowlabel)
+               opt = fl6_merge_options(&opt_space, flowlabel, opt);
+       opt = ipv6_fixup_options(&opt_space, opt);
 
        fl->proto = IPPROTO_UDP;
        ipv6_addr_copy(&fl->fl6_dst, daddr);