mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-07 15:04:39 +08: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);
|
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)) {
|
if (pb->len < sizeof(*ph)) {
|
||||||
PPPDEBUG(LOG_DEBUG, ("pppoe_data_input: could not get PPPoE header\n"));
|
PPPDEBUG(LOG_DEBUG, ("pppoe_data_input: could not get PPPoE header\n"));
|
||||||
goto drop;
|
goto drop;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user