From 0a0c7eef787dbf29c8b018420cb9d244cbe8d2dd Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Sat, 13 Apr 2019 15:30:21 +0000 Subject: IPSEC: crypto overflow decrypting too many bytes. Change-Id: I4663e70271d9734eda7f9a127967b9224c0e5efc Signed-off-by: Neale Ranns --- src/vnet/ipsec/esp_decrypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vnet/ipsec/esp_decrypt.c') diff --git a/src/vnet/ipsec/esp_decrypt.c b/src/vnet/ipsec/esp_decrypt.c index 1386f4c79fc..c94577a5d5a 100644 --- a/src/vnet/ipsec/esp_decrypt.c +++ b/src/vnet/ipsec/esp_decrypt.c @@ -234,7 +234,7 @@ esp_decrypt_inline (vlib_main_t * vm, op->key = sa0->crypto_key.data; op->iv = payload; op->src = op->dst = payload += cpd.iv_sz; - op->len = len; + op->len = len - cpd.iv_sz; op->user_data = b - bufs; } -- cgit 1.2.3-korg