]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: fix writing to pointer instead of value
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 18 Nov 2020 16:05:30 +0000 (19:05 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Fri, 27 Nov 2020 14:40:37 +0000 (17:40 +0300)
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
zebra/zebra_rnh.c

index cdc00f6026504ded3828c23bf7b55a8c4ea228ce..db4199a85daa96f98226e716e321a8f838c982e1 100644 (file)
@@ -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;
        }