Browse Source

Merge #9008: [net] Remove assert(nMaxInbound > 0)

fa1c3c2 [net] Remove assert(nMaxInbound > 0) (MarcoFalke)
0.14
Wladimir J. van der Laan 8 years ago
parent
commit
f14f07cb94
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 1
      src/net.cpp

1
src/net.cpp

@ -970,7 +970,6 @@ void CConnman::AcceptConnection(const ListenSocket& hListenSocket) { @@ -970,7 +970,6 @@ void CConnman::AcceptConnection(const ListenSocket& hListenSocket) {
CAddress addr;
int nInbound = 0;
int nMaxInbound = nMaxConnections - (nMaxOutbound + nMaxFeeler);
assert(nMaxInbound > 0);
if (hSocket != INVALID_SOCKET)
if (!addr.SetSockAddr((const struct sockaddr*)&sockaddr))

Loading…
Cancel
Save