mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
When freeing session, restore its ID after zeroing memory.
Bug tracked down by: Patrick Lamaiziere <patfbsd@davenulle.org>
This commit is contained in:
parent
7d8b54b5b5
commit
eadca5921d
1 changed files with 1 additions and 0 deletions
|
|
@ -272,6 +272,7 @@ padlock_freesession(device_t dev, uint64_t tid)
|
|||
padlock_hash_free(ses);
|
||||
bzero(ses, sizeof(*ses));
|
||||
ses->ses_used = 0;
|
||||
ses->ses_id = sid;
|
||||
TAILQ_INSERT_HEAD(&sc->sc_sessions, ses, ses_next);
|
||||
rw_wunlock(&sc->sc_sessions_lock);
|
||||
return (0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue