Final development LAC functionality.

Fix Possible ring buffer overflow.
This commit is contained in:
fendo 2012-12-15 00:00:13 +01:00
parent 0834bba08e
commit 35f10d93f4
7 changed files with 80 additions and 23 deletions

2
ppp.c
View file

@ -558,7 +558,7 @@ void processlcp(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l)
if (session[s].die) // going down...
return;
LOG((*p == EchoReq || *p == EchoReply) ? 4 : 3, s, t,
LOG(((*p == EchoReq || *p == EchoReply) ? 4 : 3), s, t,
"LCP: recv %s\n", ppp_code(*p));
if (config->debug > 3) dumplcp(p, l);