m_stats: don't try to access bl_stats if it doesn't exist

This commit is contained in:
Simon Arlott 2016-04-30 13:18:48 +01:00
parent 3c5f720c6f
commit 896370cc3e
No known key found for this signature in database
GPG key ID: C8975F2043CA5D24

View file

@ -756,6 +756,9 @@ stats_dnsbl(struct Client *source_p)
rb_dictionary_iter iter;
struct BlacklistStats *stats;
if(bl_stats == NULL)
return;
RB_DICTIONARY_FOREACH(stats, &iter, bl_stats)
{
/* use RPL_STATSDEBUG for now -- jilles */