ipv6: flowlabel: do not leave opt->tot_len with garbage
[platform/kernel/linux-exynos.git] / net / ipv6 / ip6_flowlabel.c
index 8081baf..15535ee 100644 (file)
@@ -315,6 +315,7 @@ struct ipv6_txoptions *fl6_merge_options(struct ipv6_txoptions *opt_space,
        }
        opt_space->dst1opt = fopt->dst1opt;
        opt_space->opt_flen = fopt->opt_flen;
+       opt_space->tot_len = fopt->tot_len;
        return opt_space;
 }
 EXPORT_SYMBOL_GPL(fl6_merge_options);