authd_check: don't try to update bl_stats if it doesn't exist
This can happen if all the blacklists are removed and then authd sends a blacklisted response for a client.
This commit is contained in:
parent
4573f8f2fb
commit
3c5f720c6f
1 changed files with 3 additions and 2 deletions
|
@ -218,8 +218,9 @@ authd_check(struct Client *client_p, struct Client *source_p)
|
|||
struct BlacklistStats *stats;
|
||||
char *blacklist = source_p->preClient->auth.data;
|
||||
|
||||
if((stats = rb_dictionary_retrieve(bl_stats, blacklist)) != NULL)
|
||||
stats->hits++;
|
||||
if(bl_stats != NULL)
|
||||
if((stats = rb_dictionary_retrieve(bl_stats, blacklist)) != NULL)
|
||||
stats->hits++;
|
||||
|
||||
if(IsExemptKline(source_p) || IsConfExemptDNSBL(aconf))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue