mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-07-04 20:08:57 +00:00
Fixed bug #21680: PPP upap_rauthnak() drops legal NAK packets
This commit is contained in:
parent
217f279fdb
commit
23d7f5425d
|
@ -95,6 +95,9 @@ HISTORY
|
||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2009-05-01 Simon Goldschmidt
|
||||||
|
* pap.c: bug #21680: PPP upap_rauthnak() drops legal NAK packets
|
||||||
|
|
||||||
2009-05-01 Simon Goldschmidt
|
2009-05-01 Simon Goldschmidt
|
||||||
* ppp.c: bug #24228: Memory corruption with PPP and DHCP
|
* ppp.c: bug #24228: Memory corruption with PPP and DHCP
|
||||||
|
|
||||||
|
|
|
@ -518,9 +518,9 @@ upap_rauthnak(upap_state *u, u_char *inp, int id, int len)
|
||||||
*/
|
*/
|
||||||
if (len < sizeof (u_char)) {
|
if (len < sizeof (u_char)) {
|
||||||
UPAPDEBUG((LOG_INFO, "pap_rauthnak: rcvd short packet.\n"));
|
UPAPDEBUG((LOG_INFO, "pap_rauthnak: rcvd short packet.\n"));
|
||||||
return;
|
} else {
|
||||||
}
|
|
||||||
GETCHAR(msglen, inp);
|
GETCHAR(msglen, inp);
|
||||||
|
if(msglen > 0) {
|
||||||
len -= sizeof (u_char);
|
len -= sizeof (u_char);
|
||||||
if (len < msglen) {
|
if (len < msglen) {
|
||||||
UPAPDEBUG((LOG_INFO, "pap_rauthnak: rcvd short packet.\n"));
|
UPAPDEBUG((LOG_INFO, "pap_rauthnak: rcvd short packet.\n"));
|
||||||
|
@ -528,6 +528,8 @@ upap_rauthnak(upap_state *u, u_char *inp, int id, int len)
|
||||||
}
|
}
|
||||||
msg = (char *) inp;
|
msg = (char *) inp;
|
||||||
PRINTMSG(msg, msglen);
|
PRINTMSG(msg, msglen);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
u->us_clientstate = UPAPCS_BADAUTH;
|
u->us_clientstate = UPAPCS_BADAUTH;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user