0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

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:
Simon Arlott 2016-04-30 13:18:06 +01:00
parent 4573f8f2fb
commit 3c5f720c6f
No known key found for this signature in database
GPG key ID: C8975F2043CA5D24

View file

@ -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))
{