diff options
Diffstat (limited to 'nest/rt-attr.c')
-rw-r--r-- | nest/rt-attr.c | 4 |
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; |