summaryrefslogtreecommitdiff
path: root/zebra/rt_netlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/rt_netlink.c')
-rw-r--r--zebra/rt_netlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c
index 4479c434eb..38f8140db2 100644
--- a/zebra/rt_netlink.c
+++ b/zebra/rt_netlink.c
@@ -1465,7 +1465,7 @@ static bool _netlink_route_build_singlepath(const struct prefix *p,
zlog_err("%s: unsupport seg6local behaviour action=%u",
__func__,
nexthop->nh_srv6->seg6local_action);
- break;
+ return false;
}
nl_attr_nest_end(nlmsg, nest);
}
@@ -2568,7 +2568,7 @@ ssize_t netlink_nexthop_msg_encode(uint16_t cmd,
default:
zlog_err("%s: unsupport seg6local behaviour action=%u",
__func__, action);
- break;
+ return 0;
}
nl_attr_nest_end(&req->n, nest);
}