xfrm: update flowi saddr in icmp_send if unset

otherwise xfrm_lookup will fail to find correct policy

Signed-off-by: Ulrich Weber <uweber@astaro.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ulrich Weber and committed by
David S. Miller
7d98ffd8 4c62ab9c

+3
+3
net/ipv4/icmp.c
··· 569 569 /* No need to clone since we're just using its address. */ 570 570 rt2 = rt; 571 571 572 + if (!fl.nl_u.ip4_u.saddr) 573 + fl.nl_u.ip4_u.saddr = rt->rt_src; 574 + 572 575 err = xfrm_lookup(net, (struct dst_entry **)&rt, &fl, NULL, 0); 573 576 switch (err) { 574 577 case 0: