mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-24 07:00:57 -04:00
Merge pull request #1081 from Artistic-Cabbage/close-fd-after-blacklist
Add missing close after blacklisted connection attempt.
This commit is contained in:
commit
0931779c6f
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