mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +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);
|
||||
|
||||
Reference in New Issue
Block a user