Compare commits

...

2 Commits

Author SHA1 Message Date
AMajor-C 027ae33ba3
Merge 36c018b1d9 into 9ce27f363e 2024-04-29 01:44:43 +09:00
AMajor-C 36c018b1d9
fixed wrong counter modifying 2024-04-24 14:17:35 +03:00
1 changed files with 3 additions and 3 deletions

View File

@ -2103,7 +2103,7 @@ void StopL2TPThread(L2TP_SERVER *l2tp, L2TP_TUNNEL *t, L2TP_SESSION *s)
// Interrupt processing of L2TP server
void L2TPProcessInterrupts(L2TP_SERVER *l2tp)
{
UINT i, j;
UINT i, j, k;
LIST *delete_tunnel_list = NULL;
// Validate arguments
if (l2tp == NULL)
@ -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 (k = 0; k < LIST_NUM(t->SessionList); k++)
{
L2TP_SESSION* s = LIST_DATA(t->SessionList, i);
L2TP_SESSION* s = LIST_DATA(t->SessionList, k);
if (s->TubeRecv != NULL && s->TubeRecv->DataTimeout > l2tpTimeout)
{