Skip to content

Commit 1b4e5ad

Browse files
Shmulik Ladkanidavem330
authored andcommitted
ipv6: sr: properly initialize flowi6 prior passing to ip6_route_output
In 'seg6_output', stack variable 'struct flowi6 fl6' was missing initialization. Fixes: 6c8702c ("ipv6: sr: add support for SRH encapsulation and injection with lwtunnels") Signed-off-by: Shmulik Ladkani <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent cd9d1a2 commit 1b4e5ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/ipv6/seg6_iptunnel.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ static int seg6_output(struct net *net, struct sock *sk, struct sk_buff *skb)
347347
struct ipv6hdr *hdr = ipv6_hdr(skb);
348348
struct flowi6 fl6;
349349

350+
memset(&fl6, 0, sizeof(fl6));
350351
fl6.daddr = hdr->daddr;
351352
fl6.saddr = hdr->saddr;
352353
fl6.flowlabel = ip6_flowinfo(hdr);

0 commit comments

Comments
 (0)