mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
memory reorganization in sec-mod.
It no longer relies on main pool, it uses it's own pool. In addition the DEBUG_LEAKS definition was added to allow debugging leaks.
This commit is contained in:
@@ -93,7 +93,7 @@ static int generate_cookie(sec_mod_st * sec, client_entry_st * entry)
|
||||
sc.expiration = time(0) + sec->config->cookie_validity;
|
||||
|
||||
ret =
|
||||
encrypt_cookie(&sec->cookie_key, &sc, entry->cookie,
|
||||
encrypt_cookie(&sec->dcookie_key, &sc, entry->cookie,
|
||||
sizeof(entry->cookie));
|
||||
if (ret < 0)
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user