From 581b3a2e0f2ad36d5e5e868968bb43c94de3a2a3 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Mon, 13 Feb 2023 18:55:18 +0000 Subject: fix: package dependency and unused variable Change-Id: I5dd1b92eeff665bc4e8ad4c1d88f19430bb96a74 (cherry picked from commit da80325f47a9c58aa493441ab54116019811072f) Signed-off-by: Mauro Sardara --- hicn-plugin/src/hicn_api_test.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hicn-plugin') 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); -- cgit 1.2.3-korg