From 376d7c5026c795a66ae5dc9567725bd32fe39a72 Mon Sep 17 00:00:00 2001 From: Lou Berger Date: Mon, 8 Jul 2019 09:24:57 -0400 Subject: [PATCH] bgp: add hook_unregister to bgp_dump_finish Signed-off-by: Lou Berger --- bgpd/bgp_dump.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bgpd/bgp_dump.c b/bgpd/bgp_dump.c index d12c0b6c75..7ea6ae586b 100644 --- a/bgpd/bgp_dump.c +++ b/bgpd/bgp_dump.c @@ -877,4 +877,5 @@ void bgp_dump_finish(void) stream_free(bgp_dump_obuf); bgp_dump_obuf = NULL; + hook_unregister(bgp_packet_dump, bgp_dump_packet); }