From 9cbae545f06d8cd8914c16d7d1f599c6004cc0c3 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 15 Mar 2017 09:25:43 -0400 Subject: [PATCH] zebra: Fix protobuf build on stable/2.0 When compiling w/ --enable-protobuf on stable/2.0 we were attempting to dereference the zvrf->vrf_id which got moved to zvrf->vrf->vrf_id. Signed-off-by: Donald Sharp --- zebra/zebra_fpm_protobuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zebra/zebra_fpm_protobuf.c b/zebra/zebra_fpm_protobuf.c index 702c355f1a..cd88af134d 100644 --- a/zebra/zebra_fpm_protobuf.c +++ b/zebra/zebra_fpm_protobuf.c @@ -53,7 +53,7 @@ create_delete_route_message (qpb_allocator_t *allocator, rib_dest_t *dest, } fpm__delete_route__init(msg); - msg->vrf_id = rib_dest_vrf(dest)->vrf_id; + msg->vrf_id = rib_dest_vrf(dest)->vrf->vrf_id; qpb_address_family_set(&msg->address_family, rib_dest_af(dest)); @@ -159,7 +159,7 @@ create_add_route_message (qpb_allocator_t *allocator, rib_dest_t *dest, fpm__add_route__init(msg); - msg->vrf_id = rib_dest_vrf(dest)->vrf_id; + msg->vrf_id = rib_dest_vrf(dest)->vrf->vrf_id; qpb_address_family_set (&msg->address_family, rib_dest_af(dest));