ircd/authproc.c: avoid crash on lack of any configured DNSBLs
Fixes fbc97166a6
Closes #396
This commit is contained in:
parent
7285e5febf
commit
e02cc991bb
1 changed files with 9 additions and 6 deletions
|
@ -67,7 +67,7 @@ uint32_t cid;
|
|||
static rb_dictionary *cid_clients;
|
||||
static struct ev_entry *timeout_ev;
|
||||
|
||||
rb_dictionary *dnsbl_stats;
|
||||
rb_dictionary *dnsbl_stats = NULL;
|
||||
|
||||
rb_dlink_list opm_list;
|
||||
struct OPMListener opm_listeners[LISTEN_LAST];
|
||||
|
@ -350,6 +350,8 @@ configure_authd(void)
|
|||
opm_check_enable(false);
|
||||
|
||||
/* Configure DNSBLs */
|
||||
if (dnsbl_stats != NULL)
|
||||
{
|
||||
rb_dictionary_iter iter;
|
||||
struct DNSBLEntry *entry;
|
||||
RB_DICTIONARY_FOREACH(entry, &iter, dnsbl_stats)
|
||||
|
@ -358,6 +360,7 @@ configure_authd(void)
|
|||
entry->iptype, entry->filters, entry->reason);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
authd_free_client(struct Client *client_p)
|
||||
|
|
Loading…
Reference in a new issue