Skip to content

Commit 49b2292

Browse files
author
Philip Kaufmann
committed
[net, trivial] explicitly use std::string for FindNode
- in OpenNetworkConnection we have a FindNode call, which gets a const char*, wheras we only have defined a FindNode for std::string
1 parent b679a6b commit 49b2292

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/net.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ bool OpenNetworkConnection(const CAddress& addrConnect, CSemaphoreGrant *grantOu
13631363
FindNode((CNetAddr)addrConnect) || CNode::IsBanned(addrConnect) ||
13641364
FindNode(addrConnect.ToStringIPPort()))
13651365
return false;
1366-
} else if (FindNode(pszDest))
1366+
} else if (FindNode(std::string(pszDest)))
13671367
return false;
13681368

13691369
CNode* pnode = ConnectNode(addrConnect, pszDest);
@@ -1385,7 +1385,7 @@ void ThreadMessageHandler()
13851385
{
13861386
boost::mutex condition_mutex;
13871387
boost::unique_lock<boost::mutex> lock(condition_mutex);
1388-
1388+
13891389
SetThreadPriority(THREAD_PRIORITY_BELOW_NORMAL);
13901390
while (true)
13911391
{

0 commit comments

Comments
 (0)