Fix: No RADIUS Stop message sent (regression due to the patch to avoid sending multiple CDNs)
This commit is contained in:
parent
caa9662496
commit
1f48c2907f
1 changed files with 3 additions and 1 deletions
4
l2tpns.c
4
l2tpns.c
|
|
@ -2026,7 +2026,6 @@ void sessionshutdown(sessionidt s, char const *reason, int cdn_result, int cdn_e
|
||||||
struct param_kill_session data = { &tunnel[session[s].tunnel], &session[s] };
|
struct param_kill_session data = { &tunnel[session[s].tunnel], &session[s] };
|
||||||
LOG(2, s, session[s].tunnel, "Shutting down session %u: %s\n", s, reason);
|
LOG(2, s, session[s].tunnel, "Shutting down session %u: %s\n", s, reason);
|
||||||
run_plugins(PLUGIN_KILL_SESSION, &data);
|
run_plugins(PLUGIN_KILL_SESSION, &data);
|
||||||
session[s].die = TIME + 150; // Clean up in 15 seconds
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (session[s].ip && !walled_garden && !session[s].die)
|
if (session[s].ip && !walled_garden && !session[s].die)
|
||||||
|
|
@ -2051,6 +2050,9 @@ void sessionshutdown(sessionidt s, char const *reason, int cdn_result, int cdn_e
|
||||||
memcpy(&shut_acct[shut_acct_n++], &session[s], sizeof(session[s]));
|
memcpy(&shut_acct[shut_acct_n++], &session[s], sizeof(session[s]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!session[s].die)
|
||||||
|
session[s].die = TIME + 150; // Clean up in 15 seconds
|
||||||
|
|
||||||
if (session[s].ip)
|
if (session[s].ip)
|
||||||
{ // IP allocated, clear and unroute
|
{ // IP allocated, clear and unroute
|
||||||
int r;
|
int r;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue