mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-08 21:23:13 +02:00
Fix potential crash in blacklist module if you have several DNSBLs (#4770).
This commit is contained in:
@@ -533,9 +533,17 @@ int blacklist_start_check(aClient *cptr)
|
||||
abort(); /* hmmm. unless we add some /Blacklist CHECK command. then this needs to be removed */
|
||||
}
|
||||
#endif
|
||||
|
||||
for (bl = conf_blacklist; bl; bl = bl->next)
|
||||
{
|
||||
/* Stop processing if client is (being) killed already */
|
||||
if (!BLUSER(cptr))
|
||||
break;
|
||||
|
||||
/* Initiate blacklist requests */
|
||||
if (bl->backend_type == BLACKLIST_BACKEND_DNS)
|
||||
blacklist_dns_request(cptr, bl);
|
||||
}
|
||||
|
||||
/* Free bluser entry. This only happens if you have no blacklist configured or they fail very early */
|
||||
if (BLUSER(cptr))
|
||||
|
||||
Reference in New Issue
Block a user