Kill sessions receiving a ConfReq while closing.
authorBenjamin Cama <benoar@dolka.fr>
Thu, 7 Jul 2011 11:11:27 +0000 (13:11 +0200)
committerBenjamin Cama <benoar@dolka.fr>
Fri, 29 Jul 2011 10:54:55 +0000 (12:54 +0200)
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
ppp.c

diff --git a/ppp.c b/ppp.c
index 7942e6e..7be79ce 100644 (file)
--- 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;