dpdk: fix ipsec coverity warning 64/21364/2
authorMatthew Smith <mgsmith@netgate.com>
Fri, 16 Aug 2019 16:30:02 +0000 (11:30 -0500)
committerDave Wallace <dwallacelf@gmail.com>
Mon, 19 Aug 2019 14:31:21 +0000 (14:31 +0000)
commitc458f5c09a21cc905aa1b53eda30736e52426418
treec05cd1b2df7fc0763ada7d7651ef9ed327e008a6
parent785daf4f847a786ba618e3017752567f20f0be1c
dpdk: fix ipsec coverity warning

Type: fix
Fixes: 5025d40a1134272ab57c3c3f10311e31a65cd63c

Update the expression for a conditional block which should be executed
when an encrypted packet will be sent via IPv6. Coverity was
complaining that a NULL pointer could be dereferenced. It is unclear
whether that ever would have actually happened, but the updated
expression should quell the warning and should more accurately detect
whether the block for IPv6 should be executed.

Change-Id: I731cad1f982e8f55bd44e6e05e98eff96f1957bb
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/plugins/dpdk/ipsec/esp_encrypt.c