From bf3eef203ec14f026f0e79f628f76b38f87b83e1 Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Wed, 9 Oct 2019 15:10:59 +0200 Subject: [HICN-169] Fixed counters that were decrementing or negative. Change-Id: I9165a863ac29e9386f49fdbc09da85e2fcc57750 Signed-off-by: Alberto Compagno --- hicn-plugin/src/pcs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hicn-plugin/src/pcs.h') diff --git a/hicn-plugin/src/pcs.h b/hicn-plugin/src/pcs.h index 28f9c3c37..c7e8a4b59 100644 --- a/hicn-plugin/src/pcs.h +++ b/hicn-plugin/src/pcs.h @@ -685,9 +685,9 @@ hicn_pcs_pit_delete (hicn_pit_cs_t * pitcs, hicn_pcs_entry_t ** pcs_entryp, const hicn_dpo_vft_t * dpo_vft, dpo_id_t * hicn_dpo_id) { hash_entry->locks--; - pitcs->pcs_pit_count--; if (hash_entry->locks == 0) { + pitcs->pcs_pit_count--; hicn_pcs_delete_internal (pitcs, pcs_entryp, hash_entry, node, vm, dpo_vft, hicn_dpo_id); } -- cgit 1.2.3-korg