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)
|
||||
|
@ -357,6 +359,7 @@ configure_authd(void)
|
|||
rb_helper_write(authd_helper, "O rbl %s %hhu %s :%s", entry->host,
|
||||
entry->iptype, entry->filters, entry->reason);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue