]> jfr.im git - solanum.git/commit - include/authproc.h
authd: fix crash/restart breaking DNSBL lookups (#394)
authorAaron Jones <redacted>
Wed, 11 Jan 2023 01:28:32 +0000 (01:28 +0000)
committerGitHub <redacted>
Wed, 11 Jan 2023 01:28:32 +0000 (01:28 +0000)
commitfbc97166a6e455f5cccf173abca3b9baedee4066
treee7f9657308486698b43c55b3ec20a7432c01728c
parent32d37a1660bc88884a661a0e86fa409381159e3a
authd: fix crash/restart breaking DNSBL lookups (#394)

authd child processes are only told about configured DNSBLs when the
configuration is being parsed.

This is bad, because when authd crashes or is killed, IRCd will restart
it, but will not tell it about any configured DNSBLs until IRCd is next
rehashed.

We already have a dictionary that stores configured DNSBLs (for hit
statistics for `STATS n'), so store the additional needed fields in
that structure, and loop over that dictionary's entries when authd is
restarted, sending the fields just as if the configuration were being
reloaded.

Reported-By: @Unit193
include/authproc.h
ircd/authproc.c
ircd/s_user.c
modules/m_stats.c