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,6 +218,7 @@ authd_check(struct Client *client_p, struct Client *source_p)
|
||||||
struct BlacklistStats *stats;
|
struct BlacklistStats *stats;
|
||||||
char *blacklist = source_p->preClient->auth.data;
|
char *blacklist = source_p->preClient->auth.data;
|
||||||
|
|
||||||
|
if(bl_stats != NULL)
|
||||||
if((stats = rb_dictionary_retrieve(bl_stats, blacklist)) != NULL)
|
if((stats = rb_dictionary_retrieve(bl_stats, blacklist)) != NULL)
|
||||||
stats->hits++;
|
stats->hits++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue