examples/ipsec-secgw: fix crash on unsupported algo
authorSavinay Dharmappa <savinay.dharmappa@intel.com>
Fri, 13 Dec 2019 11:49:55 +0000 (11:49 +0000)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 15 Jan 2020 15:45:04 +0000 (16:45 +0100)
commit71d9e6fb2a0d8709e97384b30d81b3bff35da16f
treee90b66d3eedc010b00445006fc29a12edc3a438d
parent47c3f7a41a26c9943f9804691d03828b2ce09f40
examples/ipsec-secgw: fix crash on unsupported algo

If algo is NULL set the status to error and return. This change
prevent crashing of ipsec-secgw application when a specific
cipher/auth/aead algo are not supported by application.

Fixes: 0d547ed03717 ("examples/ipsec-secgw: support configuration file")
Cc: stable@dpdk.org
Signed-off-by: Savinay Dharmappa <savinay.dharmappa@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
examples/ipsec-secgw/sa.c