]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: fix get_old_instance api
authorMark Stapp <mjs@voltanet.io>
Wed, 14 Nov 2018 15:06:05 +0000 (10:06 -0500)
committerMark Stapp <mjs@voltanet.io>
Wed, 21 Nov 2018 15:25:57 +0000 (10:25 -0500)
One of the dplane context accessors was returning the wrong value;
correct it.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
zebra/zebra_dplane.c

index 98db3ca7e5604915b732c762211cc3a26e9fc4b0..6cd52f7bb81ec28d0dbdf0b27ea863bd8ade8332 100644 (file)
@@ -444,7 +444,7 @@ uint16_t dplane_ctx_get_old_instance(const struct zebra_dplane_ctx *ctx)
 {
        DPLANE_CTX_VALID(ctx);
 
-       return ctx->zd_instance;
+       return ctx->zd_old_instance;
 }
 
 uint32_t dplane_ctx_get_metric(const struct zebra_dplane_ctx *ctx)