summaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src/faces/face.c
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-04-02 09:29:50 +0000
committerGerrit Code Review <gerrit@fd.io>2019-04-02 09:29:50 +0000
commit3cc0a6bbae4fd3dadb65a0e9789b48e2cea9d303 (patch)
treed1f41405115a899d40580e501f296d60cd051887 /hicn-plugin/src/faces/face.c
parent79da1f90ffcee1acc933b9ec6e58e1228c4a0cbf (diff)
parent84b72f153e9d125aa276e1cb5a05b9380a557171 (diff)
Merge "[HICN-158] Fixed ip face deletion from binary api"
Diffstat (limited to 'hicn-plugin/src/faces/face.c')
-rw-r--r--hicn-plugin/src/faces/face.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hicn-plugin/src/faces/face.c b/hicn-plugin/src/faces/face.c
index baf90a185..3be42a77f 100644
--- a/hicn-plugin/src/faces/face.c
+++ b/hicn-plugin/src/faces/face.c
@@ -127,7 +127,7 @@ hicn_face_del (hicn_face_id_t face_id)
{
int ret = HICN_ERROR_NONE;
- if (pool_len (hicn_dpoi_face_pool) > face_id)
+ if (hicn_dpoi_idx_is_valid (face_id))
{
hicn_face_t *face = hicn_dpoi_get_from_idx (face_id);
if (face->shared.locks == 0)