mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 23:49:35 -05:00
Add missing close after blacklisted connection attempt.
This commit is contained in:
parent
1c2d17b5c1
commit
39759993fb
@ -378,6 +378,11 @@ int pqissllistenbase::acceptconnection()
|
||||
if(rsBanList != NULL && !rsBanList->isAddressAccepted(remote_addr, RSBANLIST_CHECKING_FLAGS_BLACKLIST))
|
||||
{
|
||||
std::cerr << " => early rejected at this point, because of blacklist." << std::endl;
|
||||
#ifndef WINDOWS_SYS
|
||||
close(fd);
|
||||
#else
|
||||
closesocket(fd);
|
||||
#endif
|
||||
return false ;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user