From 896370cc3e031c33a749fe3ec74be7e16af42795 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sat, 30 Apr 2016 13:18:48 +0100 Subject: [PATCH] m_stats: don't try to access bl_stats if it doesn't exist --- modules/m_stats.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/m_stats.c b/modules/m_stats.c index d67348e6b..997019d70 100644 --- a/modules/m_stats.c +++ b/modules/m_stats.c @@ -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 */