diff options
Diffstat (limited to 'proto/ospf/topology.c')
-rw-r--r-- | proto/ospf/topology.c | 4 |
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; |