From: bodea Date: Fri, 1 Apr 2005 06:37:19 +0000 (+0000) Subject: only send RADIUS stop in sessionshutdown if there's an ip address X-Git-Tag: release_2_0_17~2 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/7d193dfb51ba1e81499985d23e5880740401bf39 only send RADIUS stop in sessionshutdown if there's an ip address --- diff --git a/l2tpns.c b/l2tpns.c index e65a9c1..a55854a 100644 --- a/l2tpns.c +++ b/l2tpns.c @@ -4,7 +4,7 @@ // Copyright (c) 2002 FireBrick (Andrews & Arnold Ltd / Watchfront Ltd) - GPL licenced // vim: sw=8 ts=8 -char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.73.2.5 2005/02/14 06:00:57 bodea Exp $"; +char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.73.2.6 2005/04/01 06:37:19 bodea Exp $"; #include #include @@ -1108,7 +1108,7 @@ void sessionshutdown(sessionidt s, char *reason) run_plugins(PLUGIN_KILL_SESSION, &data); } - if (session[s].opened && !walled_garden && !session[s].die) + if (session[s].ip && !walled_garden && !session[s].die) { // RADIUS Stop message uint16_t r = session[s].radius;