summaryrefslogtreecommitdiff
path: root/bgpd/bgp_main.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-02-01 10:52:21 -0500
committerGitHub <noreply@github.com>2017-02-01 10:52:21 -0500
commit5a2bd83d9de7bdd528b4be78f337f9c7a196c70b (patch)
tree477672d8900b8fcba04bd36f7b5122242d9ac876 /bgpd/bgp_main.c
parent681ca8cc528a1aec1e451b9ae860d3825f999052 (diff)
parentd24736fa17f9970dd58c5e6417bf3a5444011f5e (diff)
Merge pull request #146 from opensourcerouting/assorted-stable
assorted fixes for stable/2.0
Diffstat (limited to 'bgpd/bgp_main.c')
-rw-r--r--bgpd/bgp_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c
index e6f5cdcb67..979471dc49 100644
--- a/bgpd/bgp_main.c
+++ b/bgpd/bgp_main.c
@@ -40,6 +40,7 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
#include "queue.h"
#include "vrf.h"
#include "bfd.h"
+#include "sockopt.h"
#include "bgpd/bgpd.h"
#include "bgpd/bgp_attr.h"
@@ -309,6 +310,8 @@ bgp_exit (int status)
if (zlog_default)
closezlog (zlog_default);
+ memset (bm, 0, sizeof (*bm));
+
if (bgp_debug_count())
log_memstats_stderr ("bgpd");
exit (status);