Re: [iproute2 PATCH] utils: fix hex digits parsing in hexstring_a2n()

2016-06-14 Thread Stephen Hemminger
On Tue, 14 Jun 2016 20:55:17 + Beniamino Galvani wrote: > strtoul() only modifies errno on overflow, so if errno is not zero > before calling the function its value is preserved and makes the > function fail for valid inputs; initialize it. > > Signed-off-by: Beniamino Galvani > --- > lib/

[iproute2 PATCH] utils: fix hex digits parsing in hexstring_a2n()

2016-06-14 Thread Beniamino Galvani
strtoul() only modifies errno on overflow, so if errno is not zero before calling the function its value is preserved and makes the function fail for valid inputs; initialize it. Signed-off-by: Beniamino Galvani --- lib/utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/utils.c b/li