test/crypto: fix null check for ZUC authentication
authorCiara Power <ciara.power@intel.com>
Wed, 11 May 2022 13:29:24 +0000 (13:29 +0000)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 1 Jun 2022 14:26:34 +0000 (16:26 +0200)
commite6d37ffa69ac7fb4eec9580af5b005e6c130b79d
treef88d33df267207c011649fd174d9cdf1aee17363
parent4ec5008860b7eb0f2d501e1835228b1221c6af22
test/crypto: fix null check for ZUC authentication

Check if the returned op is NULL because of failure,
before using it and causing a segmentation fault.

Fixes: 4c99481f49c4 ("app/test: add ZUC")
Cc: stable@dpdk.org
Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test/test_cryptodev.c