mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-03 11:54:30 -04:00
Add missing close after blacklisted connection attempt.
This commit is contained in:
parent
1c2d17b5c1
commit
39759993fb
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue