lpm6: fix possible garbage in lookup
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Wed, 27 Apr 2016 15:07:53 +0000 (17:07 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 2 May 2016 13:15:45 +0000 (15:15 +0200)
commit9199cd6d51737a4f1e5a3170ff3d1d38258243ee
tree63657bae4a98fd76aee6d30924d6102aea2f371b
parent6226aa5672001673ef2eadf15c819862472277f4
lpm6: fix possible garbage in lookup

Fix issue reported by clang scan-build

Value of pointer tbl_next was uninitialized. When function lookup_step()
take else branch it may provide garbage into tbl = tbl_next;

Fixes: 5c510e13a9cb ("lpm: add IPv6 support")

Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
lib/librte_lpm/rte_lpm6.c