remove an unneded .c_str() in OpenNetworkConnection()

This commit is contained in:
Philip Kaufmann 2014-07-21 15:00:42 +02:00
parent cdb4193a31
commit f469f79ff8

View file

@ -1478,7 +1478,7 @@ bool OpenNetworkConnection(const CAddress& addrConnect, CSemaphoreGrant *grantOu
if (!pszDest) {
if (IsLocal(addrConnect) ||
FindNode((CNetAddr)addrConnect) || CNode::IsBanned(addrConnect) ||
FindNode(addrConnect.ToStringIPPort().c_str()))
FindNode(addrConnect.ToStringIPPort()))
return false;
} else if (FindNode(pszDest))
return false;