app/test-crypto-perf: fix check for auth key
authorAnoob Joseph <anoob.joseph@caviumnetworks.com>
Fri, 14 Sep 2018 09:24:47 +0000 (14:54 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Tue, 25 Sep 2018 15:57:25 +0000 (17:57 +0200)
commitc864167ce97d91ed95c68f8f85cf2dbaaae212d3
treedf5dd1b102c938051083fca2adefbdd0cf6315b7
parent109924e9f3b627eb8d5a92bab92f4ad29077bbaa
app/test-crypto-perf: fix check for auth key

Authentication key is not required for all algorithms. Making sure the
null check is done only when 'auth_key_sz' is non-zero.

Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application")
Cc: stable@dpdk.org
Signed-off-by: Anoob Joseph <anoob.joseph@caviumnetworks.com>
Signed-off-by: Ayuj Verma <ayuj.verma@caviumnetworks.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
app/test-crypto-perf/main.c