diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-12-13 21:24:19 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-12-13 21:24:19 +0000 |
commit | d4aab68ff7a309b0cf500ff947dbbbf83ab0ab03 (patch) | |
tree | f8eba0aa1a8a4643323a3a77d9e278edadbd341a /hicn-plugin/src/data_push_node.c | |
parent | 5beae2545c8006c984003374e8de04532a7d5c03 (diff) | |
parent | 2cf6ae9b832f3709209a63778e85ca46d3e1a1ec (diff) |
Merge "[HICN-457] Adding missing lock to the hash entry in order to avoid memory leak."
Diffstat (limited to 'hicn-plugin/src/data_push_node.c')
-rw-r--r-- | hicn-plugin/src/data_push_node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hicn-plugin/src/data_push_node.c b/hicn-plugin/src/data_push_node.c index ff28b4dea..21ebae16f 100644 --- a/hicn-plugin/src/data_push_node.c +++ b/hicn-plugin/src/data_push_node.c @@ -74,7 +74,7 @@ prep_buffer_for_cs (vlib_main_t * vm, vlib_buffer_t * b0, u8 isv6) * Mark the buffer as smaller than TWO_CL. It will be stored as is in the CS, without excluding * the hicn_header. Cloning is not possible, it will be copied. */ - if (b0->current_length < (buffer_advance + (CLIB_CACHE_LINE_BYTES * 2))) + if (b0->current_length <= (buffer_advance + (CLIB_CACHE_LINE_BYTES * 2))) { /* In this case the packet is copied. We don't need to add a reference as no buffer are * chained to it. |