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 /proto/bfd/bfd.c | |
parent | db2d29073acfd4086fca18ba43a5ed6baccaa8ad (diff) |
Some minor sl_allocz() cleanups
Diffstat (limited to 'proto/bfd/bfd.c')
-rw-r--r-- | proto/bfd/bfd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/proto/bfd/bfd.c b/proto/bfd/bfd.c index a8814382..8dfca790 100644 --- a/proto/bfd/bfd.c +++ b/proto/bfd/bfd.c @@ -423,9 +423,7 @@ bfd_add_session(struct bfd_proto *p, ip_addr addr, ip_addr local, struct iface * struct bfd_iface *ifa = bfd_get_iface(p, local, iface); - struct bfd_session *s = sl_alloc(p->session_slab); - bzero(s, sizeof(struct bfd_session)); - + struct bfd_session *s = sl_allocz(p->session_slab); s->addr = addr; s->ifa = ifa; s->loc_id = bfd_get_free_id(p); |