Skip to content

Commit

Permalink
Merge pull request SoftEtherVPN#2044 from Evengard/fix2043
Browse files Browse the repository at this point in the history
Incorrect variable used while iterating through sessions which makes the loop stuck
  • Loading branch information
chipitsine authored Sep 9, 2024
2 parents 9f01143 + 8f0deb5 commit e3e0c33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cedar/Proto_L2TP.c
Original file line number Diff line number Diff line change
Expand Up @@ -2138,9 +2138,9 @@ void L2TPProcessInterrupts(L2TP_SERVER *l2tp)
UINT64 l2tpTimeout = L2TP_TUNNEL_TIMEOUT;

// If we got on ANY session a higher timeout than the default L2TP tunnel timeout, increase it
for (i = 0; i < LIST_NUM(t->SessionList); i++)
for (j = 0; j < LIST_NUM(t->SessionList); j++)
{
L2TP_SESSION* s = LIST_DATA(t->SessionList, i);
L2TP_SESSION* s = LIST_DATA(t->SessionList, j);

if (s->TubeRecv != NULL && s->TubeRecv->DataTimeout > l2tpTimeout)
{
Expand Down

0 comments on commit e3e0c33

Please sign in to comment.