From e49674a43bff2298fc236d40bb2bc622b38febbd Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Mon, 24 Aug 2020 23:30:57 +0200 Subject: BGP: Zero-initialize bucket fixes assert in list Assertion 'n->prev == ((void *)0)' failed at ../lib/lists.c:79 --- proto/bgp/attrs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto') diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c index e3173eb7..5ed89da2 100644 --- a/proto/bgp/attrs.c +++ b/proto/bgp/attrs.c @@ -1518,7 +1518,7 @@ bgp_get_bucket(struct bgp_channel *c, ea_list *new) } /* Create the bucket */ - b = mb_alloc(c->pool, size); + b = mb_allocz(c->pool, size); init_list(&b->prefixes); b->hash = hash; -- cgit v1.2.3