main: removed the inactive ban_list.

This commit is contained in:
Nikos Mavrogiannopoulos
2014-05-29 00:20:13 +02:00
parent ff4f895cb0
commit 1e48d0d0de
2 changed files with 0 additions and 12 deletions
-7
View File
@@ -555,7 +555,6 @@ void clear_lists(main_server_st *s)
struct listener_st *ltmp = NULL, *lpos;
struct proc_st *ctmp = NULL, *cpos;
struct script_wait_st *script_tmp = NULL, *script_pos;
struct banned_st *btmp = NULL, *bpos;
list_for_each_safe(&s->listen_list.head, ltmp, lpos, list) {
close(ltmp->fd);
@@ -577,11 +576,6 @@ void clear_lists(main_server_st *s)
s->proc_list.total--;
}
list_for_each_safe(&s->ban_list.head, btmp, bpos, list) {
list_del(&btmp->list);
talloc_free(btmp);
}
list_for_each_safe(&s->script_list.head, script_tmp, script_pos, list) {
list_del(&script_tmp->list);
talloc_free(script_tmp);
@@ -867,7 +861,6 @@ int main(int argc, char** argv)
s->start_time = time(0);
list_head_init(&s->proc_list.head);
list_head_init(&s->ban_list.head);
list_head_init(&s->script_list.head);
tls_cache_init(s, &s->tls_db);
cookie_db_init(s, &s->cookies);