mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-04 11:38:11 +00:00
PPP, PPPoE, removed redundant size check
This commit is contained in:
parent
f96d5c9633
commit
8974b12af5
@ -672,11 +672,6 @@ pppoe_data_input(struct netif *netif, struct pbuf *pb)
|
||||
|
||||
pb = ppp_singlebuf (pb);
|
||||
|
||||
if (pb->len <= PPPOE_HEADERLEN) {
|
||||
PPPDEBUG(LOG_DEBUG, ("pppoe (data): dropping too short packet: %d bytes\n", pb->len));
|
||||
goto drop;
|
||||
}
|
||||
|
||||
if (pb->len < sizeof(*ph)) {
|
||||
PPPDEBUG(LOG_DEBUG, ("pppoe_data_input: could not get PPPoE header\n"));
|
||||
goto drop;
|
||||
|
Loading…
Reference in New Issue
Block a user