mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 23:12:09 +00:00
PPP, magic, call magic_randomize() for all packets
magic_randomize() wasn't actually called for IP4/IP6 packets, fixed
This commit is contained in:
parent
a17b3fc838
commit
0f3fbb267b
@ -712,6 +712,8 @@ void ppp_input(ppp_pcb *pcb, struct pbuf *pb) {
|
||||
const char *pname;
|
||||
#endif /* PPP_DEBUG && PPP_PROTOCOLNAME */
|
||||
|
||||
magic_randomize();
|
||||
|
||||
if (pb->len < 2) {
|
||||
PPPDEBUG(LOG_ERR, ("ppp_input[%d]: packet too short\n", pcb->netif->num));
|
||||
goto drop;
|
||||
@ -910,7 +912,6 @@ drop:
|
||||
|
||||
out:
|
||||
pbuf_free(pb);
|
||||
magic_randomize();
|
||||
}
|
||||
|
||||
/* merge a pbuf chain into one pbuf */
|
||||
|
Loading…
Reference in New Issue
Block a user