mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-04 09:05:34 -05: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
@ -378,6 +378,11 @@ int pqissllistenbase::acceptconnection()
|
|||||||
if(rsBanList != NULL && !rsBanList->isAddressAccepted(remote_addr, RSBANLIST_CHECKING_FLAGS_BLACKLIST))
|
if(rsBanList != NULL && !rsBanList->isAddressAccepted(remote_addr, RSBANLIST_CHECKING_FLAGS_BLACKLIST))
|
||||||
{
|
{
|
||||||
std::cerr << " => early rejected at this point, because of blacklist." << std::endl;
|
std::cerr << " => early rejected at this point, because of blacklist." << std::endl;
|
||||||
|
#ifndef WINDOWS_SYS
|
||||||
|
close(fd);
|
||||||
|
#else
|
||||||
|
closesocket(fd);
|
||||||
|
#endif
|
||||||
return false ;
|
return false ;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user