mirror of
https://github.com/paulusmack/ppp.git
synced 2024-12-03 00:13:39 +08:00
Ignore NAK'd options we don't recognize.
This commit is contained in:
parent
cec252029e
commit
3a379b9107
@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$Id: ipcp.c,v 1.19 1995/06/01 01:30:38 paulus Exp $";
|
||||
static char rcsid[] = "$Id: ipcp.c,v 1.20 1995/08/10 06:51:04 paulus Exp $";
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -584,8 +584,6 @@ ipcp_nakci(f, p, len)
|
||||
try.neg_addr = 1;
|
||||
no.neg_addr = 1;
|
||||
break;
|
||||
default:
|
||||
goto bad;
|
||||
}
|
||||
p = next;
|
||||
}
|
||||
|
@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$Id: lcp.c,v 1.20 1995/06/30 01:47:15 paulus Exp $";
|
||||
static char rcsid[] = "$Id: lcp.c,v 1.21 1995/08/10 06:51:06 paulus Exp $";
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -878,11 +878,13 @@ lcp_nakci(f, p, len)
|
||||
* `let me authenticate myself with you' which is a bit pointless.
|
||||
* For the quality protocol, the Nak means `ask me to send you quality
|
||||
* reports', but if we didn't ask for them, we don't want them.
|
||||
* An option we don't recognize represents the peer asking to
|
||||
* negotiate some option we don't support, so ignore it.
|
||||
*/
|
||||
while (len > CILEN_VOID) {
|
||||
GETCHAR(citype, p);
|
||||
GETCHAR(cilen, p);
|
||||
if( (len -= cilen) < 0 )
|
||||
if ((len -= cilen) < 0)
|
||||
goto bad;
|
||||
next = p + cilen - 2;
|
||||
|
||||
@ -918,8 +920,6 @@ lcp_nakci(f, p, len)
|
||||
if (go->neg_lqr || no.neg_lqr || cilen != CILEN_LQR)
|
||||
goto bad;
|
||||
break;
|
||||
default:
|
||||
goto bad;
|
||||
}
|
||||
p = next;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user