diff options
author | Mauro Sardara <msardara@cisco.com> | 2019-03-29 13:27:22 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-03-29 13:27:22 +0000 |
commit | 65317f78ac16a40d0ce189ec90eca45cbd064006 (patch) | |
tree | cb126f20a74524e32a466c9b62a699023e831c84 /hicn-plugin/src/route.c | |
parent | 1eec68585d60ef29bead48c0a1c5950d50b0260f (diff) | |
parent | 680a127fa92d8ee6e2dfb786f4dabc0519648b29 (diff) |
Merge "[HICN-151] The source address in the IP face is optional. If not provided it will be used one of the ip addresses available in the interface"
Diffstat (limited to 'hicn-plugin/src/route.c')
-rw-r--r-- | hicn-plugin/src/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hicn-plugin/src/route.c b/hicn-plugin/src/route.c index 9202efbd4..11302aba4 100644 --- a/hicn-plugin/src/route.c +++ b/hicn-plugin/src/route.c @@ -108,7 +108,7 @@ hicn_route_add (hicn_face_id_t * face_id, u32 len, vlib_main_t *vm = vlib_get_main (); hicn_face_vft_t *face_vft = NULL; - if (face_id == NULL) + if (face_id == NULL || !hicn_dpoi_idx_is_valid (*face_id)) { return HICN_ERROR_ROUTE_INVAL; } |