summaryrefslogtreecommitdiff
path: root/proto/bgp
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2020-08-24 23:30:57 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2020-09-13 18:05:34 +0200
commite49674a43bff2298fc236d40bb2bc622b38febbd (patch)
treebdf5fb3f640cfaaa733dc8ac39918d7bc495a1d6 /proto/bgp
parent205ff06ecaac9dacac90533b7eceb5752bca97fe (diff)
BGP: Zero-initialize bucket fixes assert in list
Assertion 'n->prev == ((void *)0)' failed at ../lib/lists.c:79
Diffstat (limited to 'proto/bgp')
-rw-r--r--proto/bgp/attrs.c2
1 files changed, 1 insertions, 1 deletions
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;