Fix Bug VPP-22 05/905/2
authorFlorin Coras <[email protected]>
Wed, 27 Apr 2016 20:59:09 +0000 (22:59 +0200)
committerDamjan Marion <[email protected]>
Thu, 28 Apr 2016 10:58:12 +0000 (10:58 +0000)
Change-Id: Iaac12e63e4a5ee026276638afd5d5ba3b9503a40
Signed-off-by: Florin Coras <[email protected]>
vnet/vnet/ip/ip6_forward.c

index 2bd9efd..db74c75 100644 (file)
@@ -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;