summaryrefslogtreecommitdiff
path: root/proto/ospf/topology.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 /proto/ospf/topology.c
parentdb2d29073acfd4086fca18ba43a5ed6baccaa8ad (diff)
Some minor sl_allocz() cleanups
Diffstat (limited to 'proto/ospf/topology.c')
-rw-r--r--proto/ospf/topology.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c
index ea7176fd..52c2a0ce 100644
--- a/proto/ospf/topology.c
+++ b/proto/ospf/topology.c
@@ -2108,9 +2108,7 @@ ospf_hash_get(struct top_graph *f, u32 domain, u32 lsa, u32 rtr, u32 type)
if (e)
return e;
- e = sl_alloc(f->hash_slab);
- bzero(e, sizeof(struct top_hash_entry));
-
+ e = sl_allocz(f->hash_slab);
e->color = OUTSPF;
e->dist = LSINFINITY;
e->lsa.type_raw = type;