mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
set cookie to expire when the last user disconnects
This commit is contained in:
@@ -172,5 +172,6 @@ void expire_client_entry(sec_mod_st *sec, client_entry_st * e)
|
||||
{
|
||||
if (e->in_use > 0)
|
||||
e->in_use--;
|
||||
e->time = time(0);
|
||||
if (e->in_use == 0)
|
||||
e->time = time(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user