mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-09-13 02:05:43 +00:00
fixed pbuf leaks in ppp_input() in case of packets not expected
This commit is contained in:
parent
a9ac45c5f0
commit
4077422ae2
@ -746,7 +746,7 @@ static void ppp_input(void *arg) {
|
||||
*/
|
||||
if (protocol != PPP_LCP && lcp_fsm[0].state != OPENED) {
|
||||
dbglog("Discarded non-LCP packet when LCP not open");
|
||||
return;
|
||||
goto drop;
|
||||
}
|
||||
|
||||
/* FIXME: add a phase per connection */
|
||||
@ -772,7 +772,7 @@ static void ppp_input(void *arg) {
|
||||
)) {
|
||||
dbglog("discarding proto 0x%x in phase %d",
|
||||
protocol, phase);
|
||||
return;
|
||||
goto drop;
|
||||
}
|
||||
|
||||
/* FIXME: should we write protent to do that ? */
|
||||
|
Loading…
Reference in New Issue
Block a user