authproc: don't try to delete bl_stats if it hasn't been created

This commit is contained in:
Simon Arlott 2016-04-30 13:11:06 +01:00
parent 8a29e7cd1e
commit 4573f8f2fb
No known key found for this signature in database
GPG key ID: C8975F2043CA5D24

View file

@ -648,7 +648,8 @@ blacklist_delete(rb_dictionary_element *delem, void *unused)
void void
del_blacklist_all(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; bl_stats = NULL;
rb_helper_write(authd_helper, "O rbl_del_all"); rb_helper_write(authd_helper, "O rbl_del_all");