aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>2017-06-08 13:04:47 +0100
committerSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>2017-06-09 08:57:20 +0000
commitfd1dee5086aab1301a0d644e06f0e2e2520c5b5a (patch)
treea7613e98ac491db1f562edede2d1a843164dd9e1
parent732036d677b84aa8eaea45f8059783e827622b77 (diff)
dpdk: fix ipsec coverity warning
CID 170475 Change-Id: I9748dd56bdcb62e68d8f672e5b1619a3be400b8f Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
-rw-r--r--src/plugins/dpdk/ipsec/esp_encrypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/dpdk/ipsec/esp_encrypt.c b/src/plugins/dpdk/ipsec/esp_encrypt.c
index 73d9880a..ac552f6c 100644
--- a/src/plugins/dpdk/ipsec/esp_encrypt.c
+++ b/src/plugins/dpdk/ipsec/esp_encrypt.c
@@ -362,8 +362,8 @@ dpdk_esp_encrypt_node_fn (vlib_main_t * vm,
if (sa0->crypto_alg == IPSEC_CRYPTO_ALG_AES_GCM_128)
{
u32 *esp_iv =
- (u32 *) vlib_buffer_get_current (b0) + ip_hdr_size +
- sizeof (esp_header_t);
+ (u32 *) (b0->data + b0->current_data + ip_hdr_size +
+ sizeof (esp_header_t));
esp_iv[0] = sa0->seq;
esp_iv[1] = sa0->seq_hi;
sym_cop->cipher.data.offset =