Skip to content

Commit 32235a3

Browse files
committed
Merge pull request #4567
f469f79 remove an unneded .c_str() in OpenNetworkConnection() (Philip Kaufmann)
2 parents 9192ca9 + f469f79 commit 32235a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,7 @@ bool OpenNetworkConnection(const CAddress& addrConnect, CSemaphoreGrant *grantOu
14781478
if (!pszDest) {
14791479
if (IsLocal(addrConnect) ||
14801480
FindNode((CNetAddr)addrConnect) || CNode::IsBanned(addrConnect) ||
1481-
FindNode(addrConnect.ToStringIPPort().c_str()))
1481+
FindNode(addrConnect.ToStringIPPort()))
14821482
return false;
14831483
} else if (FindNode(pszDest))
14841484
return false;

0 commit comments

Comments
 (0)