mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
main: deactivate the cookie when releasing proc.
This commit is contained in:
@@ -569,6 +569,8 @@ void clear_lists(main_server_st *s)
|
||||
close(ctmp->fd);
|
||||
if (ctmp->tun_lease.fd >= 0)
|
||||
close(ctmp->tun_lease.fd);
|
||||
if (ctmp->cookie_ptr)
|
||||
ctmp->cookie_ptr->proc = NULL;
|
||||
list_del(&ctmp->list);
|
||||
safe_memset(ctmp, 0, sizeof(*ctmp));
|
||||
talloc_free(ctmp);
|
||||
|
||||
Reference in New Issue
Block a user