ipsec: fix use of uninitialized variable
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Wed, 19 Feb 2020 00:23:02 +0000 (00:23 +0000)
committerAkhil Goyal <akhil.goyal@oss.nxp.com>
Thu, 20 Feb 2020 10:16:46 +0000 (11:16 +0100)
commitb38aaf173331e931b8aaa4b07ffffc5f5bdc960e
tree2bb171357777dce4a36f19ec3a9a8428e167ced1
parente162f1a7513480f66ed9407cecd83d17954c5f36
ipsec: fix use of uninitialized variable

Defects reported by coverity scan
uninit_use_in_call: Using uninitialized element of array clen when
calling cpu_crypto_bulk.

Coverity issue: 354233, 354234
Fixes: 957394f72658 ("ipsec: support CPU crypto mode")

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
lib/librte_ipsec/esp_inb.c
lib/librte_ipsec/esp_outb.c
lib/librte_ipsec/misc.h