mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-12 01:26:48 +08:00
close the sec-mod fds on worker
This commit is contained in:
@@ -1196,6 +1196,8 @@ int main(int argc, char** argv)
|
|||||||
sigprocmask(SIG_SETMASK, &sig_default_set, NULL);
|
sigprocmask(SIG_SETMASK, &sig_default_set, NULL);
|
||||||
close(cmd_fd[0]);
|
close(cmd_fd[0]);
|
||||||
clear_lists(s);
|
clear_lists(s);
|
||||||
|
close(s->sec_mod_fd);
|
||||||
|
close(s->sec_mod_fd_sync);
|
||||||
|
|
||||||
/* clear the cookie key */
|
/* clear the cookie key */
|
||||||
safe_memset(s->cookie_key, 0, sizeof(s->cookie_key));
|
safe_memset(s->cookie_key, 0, sizeof(s->cookie_key));
|
||||||
|
|||||||
Reference in New Issue
Block a user