diff options
author | Shmulik Ladkani <shmulik@metanetworks.com> | 2018-12-07 09:50:17 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-07 12:22:39 -0800 |
commit | 1b4e5ad5d6b9f15cd0b5121f86d4719165958417 (patch) | |
tree | fbd1e2b599ee3272dab06e7f335eed4bee243488 /net | |
parent | cd9d1a2332b01b043935c0ec9bb675effb67aac9 (diff) | |
download | linux-1b4e5ad5d6b9f15cd0b5121f86d4719165958417.tar.bz2 |
ipv6: sr: properly initialize flowi6 prior passing to ip6_route_output
In 'seg6_output', stack variable 'struct flowi6 fl6' was missing
initialization.
Fixes: 6c8702c60b88 ("ipv6: sr: add support for SRH encapsulation and injection with lwtunnels")
Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/seg6_iptunnel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/seg6_iptunnel.c b/net/ipv6/seg6_iptunnel.c index a8854dd3e9c5..8181ee7e1e27 100644 --- a/net/ipv6/seg6_iptunnel.c +++ b/net/ipv6/seg6_iptunnel.c @@ -347,6 +347,7 @@ static int seg6_output(struct net *net, struct sock *sk, struct sk_buff *skb) struct ipv6hdr *hdr = ipv6_hdr(skb); struct flowi6 fl6; + memset(&fl6, 0, sizeof(fl6)); fl6.daddr = hdr->daddr; fl6.saddr = hdr->saddr; fl6.flowlabel = ip6_flowinfo(hdr); |