From 11a1247a9411500dcdade811b8222df02f4479a1 Mon Sep 17 00:00:00 2001 From: Lorenzo Cogotti Date: Tue, 27 Jul 2021 16:45:53 +0200 Subject: [PATCH] [peerindex/peerindex.c] Fix MRT record allocator initialization --- tools/peerindex/peerindex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/peerindex/peerindex.c b/tools/peerindex/peerindex.c index a9fc334..ee2e4f4 100644 --- a/tools/peerindex/peerindex.c +++ b/tools/peerindex/peerindex.c @@ -175,7 +175,8 @@ static void Peerindex_ApplyProgramOptions(void) static void Peerindex_Init(void) { - S.rec.allocp = S.rec.allocp = &bgp_msgBuf; + S.rec.allocp = &bgp_msgBuf; + S.rec.memOps = Mem_BgpBufOps; } static const StmOps *Peerindex_OpenMrtDump(const char *filename, void **phn)