security: fix crash at accessing non-implemented ops
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Thu, 23 Apr 2020 15:10:42 +0000 (16:10 +0100)
committerAkhil Goyal <akhil.goyal@nxp.com>
Thu, 23 Apr 2020 15:56:38 +0000 (17:56 +0200)
commit34dff8bacc7b95cc288c24894443bd356e453b64
tree75d4980c1c562532cf779e0141c66ec3e4900d73
parent24fd2eea9ffbb9525f3d7653c407e36bc0d7f3c1
security: fix crash at accessing non-implemented ops

Valid checks for optional function pointers inside dev-ops
were disabled by undefined macro.

Fixes: b6ee98547847 ("security: fix verification of parameters")
Cc: stable@dpdk.org
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
lib/librte_security/rte_security.c