app/testpmd: fix memory access error for metering CLI
authorJasvinder Singh <jasvinder.singh@intel.com>
Fri, 27 Oct 2017 09:17:35 +0000 (10:17 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Nov 2017 07:26:17 +0000 (07:26 +0000)
commit860806fc7b39135be23b331233ac30b242391093
tree2ecf24d58a967e9ac9ae0896dd1e231bd37851af
parent4f5dd001f77d01205566ed7e6349f60cd381621c
app/testpmd: fix memory access error for metering CLI

Fix memory access (out of bounds write) error, color and
action assignments.

Coverity issue: 198437
Fixes: 30ffb4e67ee3 ("app/testpmd: add commands traffic metering and policing")

Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/cmdline_mtr.c