summaryrefslogtreecommitdiff
path: root/nest/rt-attr.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2020-11-24 03:21:44 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2020-11-24 03:21:44 +0100
commitc9ae81656f97bcc55910e80b6f00d3ee9383d848 (patch)
treeeab1d953cc77e3644fe6f5d0bdae9e088210b98d /nest/rt-attr.c
parentdb2d29073acfd4086fca18ba43a5ed6baccaa8ad (diff)
Some minor sl_allocz() cleanups
Diffstat (limited to 'nest/rt-attr.c')
-rw-r--r--nest/rt-attr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nest/rt-attr.c b/nest/rt-attr.c
index 28d956bc..25e39488 100644
--- a/nest/rt-attr.c
+++ b/nest/rt-attr.c
@@ -135,7 +135,7 @@ rt_get_source(struct proto *p, u32 id)
if (src)
return src;
- src = sl_alloc(rte_src_slab);
+ src = sl_allocz(rte_src_slab);
src->proto = p;
src->private_id = id;
src->global_id = idm_alloc(&src_ids);
@@ -366,7 +366,7 @@ nexthop_copy(struct nexthop *o)
for (; o; o = o->next)
{
- struct nexthop *n = sl_alloc(nexthop_slab(o));
+ struct nexthop *n = sl_allocz(nexthop_slab(o));
n->gw = o->gw;
n->iface = o->iface;
n->next = NULL;