Ensure that sessionkill is not called on an unopened session (borks the freelist).
authorbodea <bodea>
Mon, 14 Feb 2005 06:00:57 +0000 (06:00 +0000)
committerbodea <bodea>
Mon, 14 Feb 2005 06:00:57 +0000 (06:00 +0000)
commita605b2643b7b472e9020fe0da9c7b07c5391f23b
tree46a2f7d604bbc4042cc415ab78b312cfbfcc3efa
parentf60c61f7d4236058f60a3aac776dcddba84fb8f4
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.
l2tpns.c