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

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);

View File

@@ -162,10 +162,6 @@ struct banned_st {
socklen_t addr_len;
};
struct ban_list_st {
struct list_head head;
};
struct cookie_entry_db_st {
struct htable *db;
unsigned total;
@@ -185,7 +181,6 @@ typedef struct main_server_st {
struct listen_list_st listen_list;
struct proc_list_st proc_list;
struct script_list_st script_list;
struct ban_list_st ban_list;
char socket_file[_POSIX_PATH_MAX];
char full_socket_file[_POSIX_PATH_MAX];