From: fendo Date: Sun, 13 Jan 2013 23:04:56 +0000 (+0100) Subject: Fix: No RADIUS Stop message sent (regression due to the patch to avoid sending multip... X-Git-Tag: 2.2.1-2fdn3.3~2 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/1f48c2907f50134331af26fa6161a27075adac28 Fix: No RADIUS Stop message sent (regression due to the patch to avoid sending multiple CDNs) --- diff --git a/l2tpns.c b/l2tpns.c index 850cd76..a1819f2 100644 --- a/l2tpns.c +++ b/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] }; LOG(2, s, session[s].tunnel, "Shutting down session %u: %s\n", s, reason); 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) @@ -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])); } + if (!session[s].die) + session[s].die = TIME + 150; // Clean up in 15 seconds + if (session[s].ip) { // IP allocated, clear and unroute int r;