]> git.puffer.fish Git - matthieu/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>
Wed, 18 Nov 2020 16:05:30 +0000 (19:05 +0300)
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
zebra/zebra_rnh.c

index 521f969fcc44ac3518900196e65bc5baa407bd5f..3c4dbc5e9cff9ca6c473e7b25195f9daca7ba959 100644 (file)
@@ -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;
        }