aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2014-07-21 15:00:42 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2014-07-21 15:00:42 +0200
commitf469f79ff8f33c8d487d48cd6af83e1c73cf0a94 (patch)
treea5b5f49483b124abc2df0cf6f21801d6d8a48898 /src/net.cpp
parentcdb4193a317e1360be806eed9838010e642b6388 (diff)
remove an unneded .c_str() in OpenNetworkConnection()
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index b55cd72e86..5a48cb5562 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -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;