aboutsummaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2016-04-27 22:59:09 +0200
committerDamjan Marion <damarion@cisco.com>2016-04-28 10:58:12 +0000
commit81d381c35b3fd050518645c9a50cc8c7035a7649 (patch)
tree3fc713078e1a2fc5a3b98ee875b64855a675b924 /vnet
parent1c9f6ce744af84a2be3a2cd9d1e8298f358da7e6 (diff)
Fix Bug VPP-22
Change-Id: Iaac12e63e4a5ee026276638afd5d5ba3b9503a40 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/ip/ip6_forward.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnet/vnet/ip/ip6_forward.c b/vnet/vnet/ip/ip6_forward.c
index 2bd9efd630e..db74c75b37b 100644
--- a/vnet/vnet/ip/ip6_forward.c
+++ b/vnet/vnet/ip/ip6_forward.c
@@ -1473,7 +1473,7 @@ u16 ip6_tcp_udp_icmp_compute_checksum (vlib_main_t * vm, vlib_buffer_t * p0, ip6
n_bytes_left = n_this_buffer = payload_length_host_byte_order;
#if DPDK > 0
- if (p0)
+ if (p0 && n_this_buffer + headers_size > p0->current_length)
{
struct rte_mbuf *mb = rte_mbuf_from_vlib_buffer(p0);
u8 nb_segs = mb->nb_segs;