buffers: fix vlib_buffer_free_no_next 88/20088/2
authorDamjan Marion <damarion@cisco.com>
Tue, 11 Jun 2019 18:12:23 +0000 (20:12 +0200)
committerDave Barach <openvpp@barachs.net>
Wed, 12 Jun 2019 14:31:58 +0000 (14:31 +0000)
Type: fix
Fixes: 910d369
Change-Id: I0e8380cd2b0dc038a028d9cf2568741059de460f
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vlib/buffer_funcs.h

index e9d0704..521a036 100644 (file)
@@ -838,7 +838,7 @@ vlib_buffer_free_inline (vlib_main_t * vm, u32 * buffers, u32 n_buffers,
          n_queue = 0;
        }
 
-      if (flags & VLIB_BUFFER_NEXT_PRESENT)
+      if (maybe_next && (flags & VLIB_BUFFER_NEXT_PRESENT))
        {
          bi = next;
          goto next_in_chain;