Handle receiving more than one acceptable CCP REQ

during one negotiation session without REJecting
everything from the second REQuest.
This commit is contained in:
brian 1999-05-02 14:33:39 +00:00
parent 3e34b1a0bc
commit 282fe0fdfa

View File

@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* $Id: ccp.c,v 1.44 1999/03/11 01:49:15 brian Exp $
* $Id: ccp.c,v 1.45 1999/03/31 14:21:44 brian Exp $
*
* TODO:
* o Support other compression protocols
@ -411,10 +411,12 @@ CcpDecodeConfig(struct fsm *fp, u_char *cp, int plen, int mode_type,
{
/* Deal with incoming data */
struct ccp *ccp = fsm2ccp(fp);
int type, length;
int f;
int type, length, f;
const char *end;
if (mode_type == MODE_REQ)
ccp->in.algorithm = -1; /* In case we've received two REQs in a row */
while (plen >= sizeof(struct fsmconfig)) {
type = *cp;
length = cp[1];