From: Benjamin Cama Date: Thu, 7 Jul 2011 11:11:27 +0000 (+0200) Subject: Kill sessions receiving a ConfReq while closing. X-Git-Tag: debian/2.2.1-1fdn1~1^2~2 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/4f1a9aa37825f9f92a8ff7dee3952d715c47ece5?hp=fd021320eca6d370c46de3893c113b4fd72f6f9a Kill sessions receiving a ConfReq while closing. Signed-off-by: Benjamin Cama --- diff --git a/ppp.c b/ppp.c index 7942e6e..7be79ce 100644 --- a/ppp.c +++ b/ppp.c @@ -821,6 +821,10 @@ void processlcp(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l) break; + case Closing: + sessionshutdown(s, "LCP: ConfigReq in state Closing. This should not happen. Killing session.", CDN_ADMIN_DISC, TERM_LOST_SERVICE); + break; + default: LOG(2, s, t, "LCP: ignoring %s in state %s\n", ppp_code(*p), ppp_state(session[s].ppp.lcp)); return;