From 3be6a47a1800fb965fbe03639e2c70767d35af6d Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Wed, 18 Nov 2020 19:05:30 +0300 Subject: [PATCH] zebra: fix writing to pointer instead of value Signed-off-by: Igor Ryzhov --- zebra/zebra_rnh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/zebra_rnh.c b/zebra/zebra_rnh.c index cdc00f6026..db4199a85d 100644 --- a/zebra/zebra_rnh.c +++ b/zebra/zebra_rnh.c @@ -167,7 +167,7 @@ struct rnh *zebra_add_rnh(struct prefix *p, vrf_id_t vrfid, enum rnh_type type, flog_warn(EC_ZEBRA_RNH_NO_TABLE, "%u: Add RNH %s type %s - table not found", vrfid, buf, rnh_type2str(type)); - exists = false; + *exists = false; return NULL; } -- 2.39.5