summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hicn-plugin/src/data_fwd_node.c2
-rw-r--r--hicn-plugin/src/pcs.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/hicn-plugin/src/data_fwd_node.c b/hicn-plugin/src/data_fwd_node.c
index fe4155958..53308a49d 100644
--- a/hicn-plugin/src/data_fwd_node.c
+++ b/hicn-plugin/src/data_fwd_node.c
@@ -485,7 +485,7 @@ hicn_satisfy_faces (vlib_main_t * vm, u32 bi0,
sizeof (t->packet_data));
}
vlib_validate_buffer_enqueue_x2 (vm, node, *next_index,
- *to_next, *n_left_to_next,
+ (*to_next), *n_left_to_next,
hi0, hi1, next0, next1);
}
diff --git a/hicn-plugin/src/pcs.h b/hicn-plugin/src/pcs.h
index 491476221..28f9c3c37 100644
--- a/hicn-plugin/src/pcs.h
+++ b/hicn-plugin/src/pcs.h
@@ -356,8 +356,6 @@ hicn_pcs_delete_internal (hicn_pit_cs_t * pitcs,
if (hash_entry->he_flags & HICN_HASH_ENTRY_FLAG_CS_ENTRY)
{
pitcs->pcs_cs_dealloc++;
- vlib_buffer_t *b0 = vlib_get_buffer (vm, pcs->u.cs.cs_pkt_buf);
- ASSERT(b0->ref_count == 1);
/* Free any associated packet buffer */
vlib_buffer_free_one (vm, pcs->u.cs.cs_pkt_buf);
pcs->u.cs.cs_pkt_buf = ~0;