diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2020-11-24 03:21:44 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2020-11-24 03:21:44 +0100 |
commit | c9ae81656f97bcc55910e80b6f00d3ee9383d848 (patch) | |
tree | eab1d953cc77e3644fe6f5d0bdae9e088210b98d /nest/neighbor.c | |
parent | db2d29073acfd4086fca18ba43a5ed6baccaa8ad (diff) |
Some minor sl_allocz() cleanups
Diffstat (limited to 'nest/neighbor.c')
-rw-r--r-- | nest/neighbor.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nest/neighbor.c b/nest/neighbor.c index d046e981..1a31fb79 100644 --- a/nest/neighbor.c +++ b/nest/neighbor.c @@ -253,9 +253,7 @@ neigh_find(struct proto *p, ip_addr a, struct iface *iface, uint flags) if ((scope < 0) && !(flags & NEF_STICKY)) return NULL; - n = sl_alloc(neigh_slab); - memset(n, 0, sizeof(neighbor)); - + n = sl_allocz(neigh_slab); add_tail(&neigh_hash_table[h], &n->n); add_tail((scope >= 0) ? &iface->neighbors : &sticky_neigh_list, &n->if_n); n->addr = a; |