Add missing close after blacklisted connection attempt.

This commit is contained in:
Arthur Cruchon 2017-10-25 17:42:09 +02:00
parent 1c2d17b5c1
commit 39759993fb

View File

@ -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