backport 9008: Remove assert(nMaxInbound > 0) (#1548)

This commit is contained in:
UdjinM6 2017-07-22 22:37:10 +03:00 committed by GitHub
parent 82851b439c
commit 7707c07897

View File

@ -1012,7 +1012,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))