test/table: fix uninitialized parameter
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 21 Dec 2017 15:53:05 +0000 (15:53 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Jan 2018 23:32:39 +0000 (00:32 +0100)
commit7e60499b6cb941547a147ed66f912aee148ff252
tree2a7695794df75b472481f53226b71569295e54a6
parentc4a0228fcd6474e171d24446cd3391769ad1dc16
test/table: fix uninitialized parameter

delete_bulk() copies metadata to pointers provided by the entries
parameter, but in the unit test, they are uninitialized, leading
to rte_table attempting to memcpy into random garbage pointers.

Memsetting pointer table to zero will prevent that from happening.

Fixes: 48f2543cf0a8 ("app/test: add bulk adding and deleting")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
test/test/test_table_acl.c