summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2020-11-18 19:05:30 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2020-11-18 19:05:30 +0300
commitb0efbc16e40492bb2c80b97031a7991a42af6c24 (patch)
treef6ca953eba58268696b92ebffa524956dcb52a26
parentb83bb9aa629a0361bc76fa90beb6f6e7d2b57332 (diff)
zebra: fix writing to pointer instead of value
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
-rw-r--r--zebra/zebra_rnh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_rnh.c b/zebra/zebra_rnh.c
index 521f969fcc..3c4dbc5e9c 100644
--- a/zebra/zebra_rnh.c
+++ b/zebra/zebra_rnh.c
@@ -152,7 +152,7 @@ struct rnh *zebra_add_rnh(struct prefix *p, vrf_id_t vrfid, enum rnh_type type,
flog_warn(EC_ZEBRA_RNH_NO_TABLE,
"%s(%u): Add RNH %pFX type %s - table not found",
VRF_LOGNAME(vrf), vrfid, p, rnh_type2str(type));
- exists = false;
+ *exists = false;
return NULL;
}