From: bodea Date: Mon, 14 Feb 2005 06:00:57 +0000 (+0000) Subject: Ensure that sessionkill is not called on an unopened session (borks the freelist). X-Git-Tag: release_2_0_16~1 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/a605b2643b7b472e9020fe0da9c7b07c5391f23b?hp=a605b2643b7b472e9020fe0da9c7b07c5391f23b Ensure that sessionkill is not called on an unopened session (borks the freelist). Fix off-by-one errors in session/tunnel initialisation and sessiont <-> sessionidt functions. Use session[s].opened consistently when checking for in-use sessions (rather than session[s].tunnel). Use <= cluster_highest_sessionid rather than < MAXSESSION in a couple of loops. ---