summaryrefslogtreecommitdiffstats
path: root/zebra
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-01-02 21:26:11 +0100
committerRenato Westphal <renato@opensourcerouting.org>2019-01-14 18:58:26 +0100
commite4081c0e0b0ff763f446d92095017e8cb4df67aa (patch)
tree1d750908a1b67bf7e6f131c7d245bf2b888fd0b9 /zebra
parentMerge pull request #3605 from donaldsharp/bfd_24_minutes (diff)
downloadfrr-e4081c0e0b0ff763f446d92095017e8cb4df67aa.tar.xz
frr-e4081c0e0b0ff763f446d92095017e8cb4df67aa.zip
lib: add a few more sanity checks when encoding/decoding routes
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'zebra')
-rw-r--r--zebra/zapi_msg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c
index faa0eb90e..8fe7031ab 100644
--- a/zebra/zapi_msg.c
+++ b/zebra/zapi_msg.c
@@ -530,6 +530,7 @@ int zsend_redistribute_route(int cmd, struct zserv *client,
memset(&api, 0, sizeof(api));
api.vrf_id = re->vrf_id;
api.type = re->type;
+ api.safi = SAFI_UNICAST;
api.instance = re->instance;
api.flags = re->flags;