mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-11 01:06:59 +08:00
main: removed the inactive ban_list.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user