summaryrefslogtreecommitdiffstats
path: root/staticd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-12-28 03:46:01 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-12-29 03:06:09 +0100
commit4a582888941f9ae9f148f2ba95afb60fedcf0d09 (patch)
treee426128e4cda1bc246452b609d4ed30d724f86fb /staticd
parentMerge pull request #3535 from kareiva/master (diff)
downloadfrr-4a582888941f9ae9f148f2ba95afb60fedcf0d09.tar.xz
frr-4a582888941f9ae9f148f2ba95afb60fedcf0d09.zip
staticd: Do not ready prefix for printing till it's decoded
The static daemon is setting up the prefix for printing before it is decoded when we get notified about our route. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'staticd')
-rw-r--r--staticd/static_zebra.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c
index 1e23f597b..d6db60d3e 100644
--- a/staticd/static_zebra.c
+++ b/staticd/static_zebra.c
@@ -154,11 +154,11 @@ static int route_notify_owner(int command, struct zclient *zclient,
uint32_t table_id;
char buf[PREFIX_STRLEN];
- prefix2str(&p, buf, sizeof(buf));
-
if (!zapi_route_notify_decode(zclient->ibuf, &p, &table_id, &note))
return -1;
+ prefix2str(&p, buf, sizeof(buf));
+
switch (note) {
case ZAPI_ROUTE_FAIL_INSTALL:
zlog_warn("%s: Route %s failed to install for table: %u",