app/testpmd: fix crash on TM command error
authorKrzysztof Kanas <krzysztof.kanas@caviumnetworks.com>
Wed, 25 Jul 2018 12:41:48 +0000 (14:41 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 26 Jul 2018 17:33:38 +0000 (19:33 +0200)
commita27e56d29f0b495cd1549828f5d2a3e623ebad80
tree697475faf452b2206c14ca504699889c8acd8176
parentb23ee8f2ac5de4a52573f844ba3c4f3261c3f7e7
app/testpmd: fix crash on TM command error

print_err_msg uses message field that may be not initialized causing
segmentation fault.

Fixes: 12f76f5247e2 ("app/testpmd: add command to resume a TM node")

Signed-off-by: Krzysztof Kanas <krzysztof.kanas@caviumnetworks.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
app/test-pmd/cmdline_tm.c