Browse Source

Bugfix: null pointer check is added

cl-refactor
Vlad Gluhovsky 10 years ago
parent
commit
66c3f1149b
  1. 2
      libp2p/Host.cpp

2
libp2p/Host.cpp

@ -464,7 +464,7 @@ void Host::connect(std::shared_ptr<Peer> const& _p)
return;
}
if (!m_nodeTable->haveNode(_p->id))
if (!!m_nodeTable && !m_nodeTable->haveNode(_p->id))
{
clog(NetWarn) << "Aborted connect. Node not in node table.";
m_nodeTable->addNode(*_p.get());

Loading…
Cancel
Save