Skip to content

Commit a2b6a7c

Browse files
committed
SEBWIN-1097, #1363: Fixed issue with session integrity mechanism.
1 parent 1d6b54f commit a2b6a7c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

SafeExamBrowser.Configuration/Integrity/IntegrityModule.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,7 @@ private bool TryReadSessionCache(out IList<(string configurationKey, string star
201201
using (var stream = new CryptoStream(file, aes.CreateDecryptor(SESSION_DATA_KEY, SESSION_DATA_IV), CryptoStreamMode.Read))
202202
using (var reader = new StreamReader(stream))
203203
{
204-
var line = reader.ReadLine();
205-
206-
if (line != default)
204+
for (var line = reader.ReadLine(); line != default; line = reader.ReadLine())
207205
{
208206
var session = line.Split(new string[] { SESSION_DATA_SEPARATOR }, StringSplitOptions.None);
209207
var configurationKey = session[0];

0 commit comments

Comments
 (0)