From 60bd390f5d30c49b6be0f3ba85404c94be9a7cba Mon Sep 17 00:00:00 2001 From: Ananth Suryanarayana Date: Fri, 31 Jul 2015 14:04:08 -0700 Subject: [PATCH] Initialize BgpEvpnManagerTest::tag_ properly in the constructor Also initialize XmppServer::max_connections_, which got missed out in a previous commit Change-Id: Ia96aceb3b9d9e280d07a361bc8fee312b22337cc Closes-Bug: 1480454 --- src/bgp/test/bgp_evpn_manager_test.cc | 2 +- src/xmpp/xmpp_server.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bgp/test/bgp_evpn_manager_test.cc b/src/bgp/test/bgp_evpn_manager_test.cc index 5de9181b3f8..3f8ac0cf4d0 100644 --- a/src/bgp/test/bgp_evpn_manager_test.cc +++ b/src/bgp/test/bgp_evpn_manager_test.cc @@ -157,7 +157,7 @@ class BgpEvpnManagerTest : public ::testing::TestWithParam { static const int kVrfId = 1; static const int kVnIndex = 1; - BgpEvpnManagerTest() : thread_(&evm_) { + BgpEvpnManagerTest() : thread_(&evm_), tag_(0) { } virtual void SetUp() { diff --git a/src/xmpp/xmpp_server.cc b/src/xmpp/xmpp_server.cc index 72d307db11c..8777021d1fc 100644 --- a/src/xmpp/xmpp_server.cc +++ b/src/xmpp/xmpp_server.cc @@ -55,6 +55,7 @@ XmppServer::XmppServer(EventManager *evm, const string &server_addr, const XmppChannelConfig *config) : XmppConnectionManager( evm, ssl::context::tlsv1_server, config->auth_enabled, true), + max_connections_(0), lifetime_manager_(XmppObjectFactory::Create( TaskScheduler::GetInstance()->GetTaskId("bgp::Config"))), deleter_(new DeleteActor(this)),