0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

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; rb_dictionary_iter iter;
struct BlacklistStats *stats; struct BlacklistStats *stats;
if(bl_stats == NULL)
return;
RB_DICTIONARY_FOREACH(stats, &iter, bl_stats) RB_DICTIONARY_FOREACH(stats, &iter, bl_stats)
{ {
/* use RPL_STATSDEBUG for now -- jilles */ /* use RPL_STATSDEBUG for now -- jilles */