From 4573f8f2fb140bdfdc467ed3ab0c92d5df18c604 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sat, 30 Apr 2016 13:11:06 +0100 Subject: [PATCH] authproc: don't try to delete bl_stats if it hasn't been created --- ircd/authproc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ircd/authproc.c b/ircd/authproc.c index ff179160..e8fa8181 100644 --- a/ircd/authproc.c +++ b/ircd/authproc.c @@ -648,7 +648,8 @@ blacklist_delete(rb_dictionary_element *delem, void *unused) void del_blacklist_all(void) { - rb_dictionary_destroy(bl_stats, blacklist_delete, NULL); + if(bl_stats != NULL) + rb_dictionary_destroy(bl_stats, blacklist_delete, NULL); bl_stats = NULL; rb_helper_write(authd_helper, "O rbl_del_all");