aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src/data_fwd_node.c
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2019-12-13 20:43:30 +0000
committerAlberto Compagno <acompagn+fdio@cisco.com>2019-12-13 20:53:47 +0000
commit2cf6ae9b832f3709209a63778e85ca46d3e1a1ec (patch)
treee8152d33fa164538046a033daa355fef32ad7b22 /hicn-plugin/src/data_fwd_node.c
parent02be1b9403b12c03fc4c03ef872fb71ec37b2c1c (diff)
[HICN-457] Adding missing lock to the hash entry in order to avoid memory leak.
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Change-Id: I9ee6d6311ca39353f93e6d41b06752b17628b46f
Diffstat (limited to 'hicn-plugin/src/data_fwd_node.c')
-rw-r--r--hicn-plugin/src/data_fwd_node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hicn-plugin/src/data_fwd_node.c b/hicn-plugin/src/data_fwd_node.c
index ca3baaa0d..1bb064fcf 100644
--- a/hicn-plugin/src/data_fwd_node.c
+++ b/hicn-plugin/src/data_fwd_node.c
@@ -399,7 +399,7 @@ hicn_satisfy_faces (vlib_main_t * vm, u32 bi0,
* 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.