app/fib: fix parsing of invalid line
authorVladimir Medvedkin <vladimir.medvedkin@intel.com>
Mon, 11 May 2020 09:22:32 +0000 (10:22 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 19 May 2020 17:25:30 +0000 (19:25 +0200)
commit5876077aba8c1bf8a46f08ae27b880e3f7f8550f
treecf46864b23e3c2388689b237b93e714a27e6d51d
parent1d049dc7623e4c0506c9c34dbb168ad9530daae0
app/fib: fix parsing of invalid line

Check returned value after strtok()
CID 355674 (#1 of 1): Dereference null return value (NULL_RETURNS)
4. dereference: Dereferencing a pointer that might be NULL s when
calling inet_pton

Fixes: 103809d032cd ("app/test-fib: add test application for FIB")
Cc: stable@dpdk.org
Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
app/test-fib/main.c