diff options
author | Mauro Sardara <msardara@cisco.com> | 2022-09-02 14:34:36 +0000 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2022-09-02 14:42:53 +0000 |
commit | cb6f5724b85e51295498a39144ed4ccce114ad53 (patch) | |
tree | 090b6753d305fd7bc25b84879b63581bbec3b38c /hicn-plugin/src/pcs.h | |
parent | 00a6f92b97a0456259163ade2085defdebeb3f84 (diff) |
fix(sonar): make sonarqube happy
Ref: HICN-766 HICN-767 HICN-764 HICN-762 HICN-743 HICN-759 HICN-760 HICN-758 HICN-761 HICN-756
Change-Id: Ic2accf6b6771c7a78d2b22d9bdb8e5a5be9ead8a
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'hicn-plugin/src/pcs.h')
-rw-r--r-- | hicn-plugin/src/pcs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hicn-plugin/src/pcs.h b/hicn-plugin/src/pcs.h index f9cb7bd91..0b7635100 100644 --- a/hicn-plugin/src/pcs.h +++ b/hicn-plugin/src/pcs.h @@ -634,7 +634,10 @@ hicn_pcs_lookup_one (hicn_pit_cs_t *pitcs, const hicn_name_t *name, } // Retrieve entry from pool - *pcs_entry = hicn_pcs_entry_get_entry_from_index (pitcs, kv.value); + *pcs_entry = hicn_pcs_entry_get_entry_from_index (pitcs, (u32) (kv.value)); + + // If the search is successful, we MUST find the entry in the pool. + ALWAYS_ASSERT (*pcs_entry); // If entry found and it is a CS entry, let's update the LRU if (hicn_pcs_entry_is_cs (*pcs_entry)) |