aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2023-02-13 18:55:18 +0000
committerMauro Sardara <msardara@cisco.com>2023-02-13 18:55:18 +0000
commitda80325f47a9c58aa493441ab54116019811072f (patch)
treee11faf2f3972fc326b8fb6eebdd27cd32f429541 /hicn-plugin
parent7cfd91a6c6316fe15186c8cd3acc1c4526db7e25 (diff)
fix: package dependency and unused variable
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I5dd1b92eeff665bc4e8ad4c1d88f19430bb96a74
Diffstat (limited to 'hicn-plugin')
-rw-r--r--hicn-plugin/src/hicn_api_test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hicn-plugin/src/hicn_api_test.c b/hicn-plugin/src/hicn_api_test.c
index e3b942b7b..3ca48d98a 100644
--- a/hicn-plugin/src/hicn_api_test.c
+++ b/hicn-plugin/src/hicn_api_test.c
@@ -900,6 +900,11 @@ api_hicn_api_mapme_default_route_get (vat_main_t *vam)
}
}
+ if (default_route == 0)
+ {
+ return 1;
+ }
+
/* Construct the API message */
M (HICN_API_MAPME_DEFAULT_ROUTE_GET, mp);