Re: [iproute PATCH v2 2/7] ss: Make sure index variable is >= 0

2017-08-21 Thread Stephen Hemminger
On Mon, 21 Aug 2017 19:08:08 +0200 Phil Sutter wrote: > This shouldn't happen but relying upon external data without checking > may lead to unexpected results. > > Signed-off-by: Phil Sutter > --- > misc/ss.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/misc/ss.c b

[iproute PATCH v2 2/7] ss: Make sure index variable is >= 0

2017-08-21 Thread Phil Sutter
This shouldn't happen but relying upon external data without checking may lead to unexpected results. Signed-off-by: Phil Sutter --- misc/ss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/ss.c b/misc/ss.c index 10360e5a04ff8..1ee02d73b2d7f 100644 --- a/misc/ss.c +++ b