Re: [iproute PATCH] ip-route: Fix parse_encap_seg6() srh parsing

2018-10-22 Thread Stephen Hemminger
On Thu, 18 Oct 2018 15:44:14 +0200 Phil Sutter wrote: > In case caller did not specify 'segs' parameter, parse_srh() would read > garbage while iterating over 'segbuf'. Avoid this by initializing > 'segbuf' to an empty string. > > Fixes: e8493916a8ede ("iproute: add support for SR-IPv6 lwtunnel

[iproute PATCH] ip-route: Fix parse_encap_seg6() srh parsing

2018-10-18 Thread Phil Sutter
In case caller did not specify 'segs' parameter, parse_srh() would read garbage while iterating over 'segbuf'. Avoid this by initializing 'segbuf' to an empty string. Fixes: e8493916a8ede ("iproute: add support for SR-IPv6 lwtunnel encapsulation") Signed-off-by: Phil Sutter --- ip/iproute_lwtunn