Fix processing of ConfigNak responses to LCP.
This commit is contained in:
parent
4d3e657b28
commit
750423daee
1 changed files with 4 additions and 2 deletions
6
ppp.c
6
ppp.c
|
|
@ -1,6 +1,6 @@
|
||||||
// L2TPNS PPP Stuff
|
// L2TPNS PPP Stuff
|
||||||
|
|
||||||
char const *cvs_id_ppp = "$Id: ppp.c,v 1.58 2005-05-10 09:57:50 bodea Exp $";
|
char const *cvs_id_ppp = "$Id: ppp.c,v 1.59 2005-05-10 10:54:34 jonmcd Exp $";
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
@ -605,6 +605,8 @@ void processlcp(tunnelidt t, sessionidt s, uint8_t *p, uint16_t l)
|
||||||
LOG(2, s, t, " Remote NAKed LCP type %u?\n", type);
|
LOG(2, s, t, " Remote NAKed LCP type %u?\n", type);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
x -= length;
|
||||||
|
o += length;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!authtype)
|
if (!authtype)
|
||||||
|
|
@ -1327,7 +1329,7 @@ void sendlcp(tunnelidt t, sessionidt s, int authtype)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
LOG(4, s, t, "Sending LCP ConfigReq for %s\n",
|
LOG(4, s, t, "Sending LCP ConfigReq for %s\n",
|
||||||
config->radius_authprefer == AUTHCHAP ? "CHAP" : "PAP");
|
authtype == AUTHCHAP ? "CHAP" : "PAP");
|
||||||
|
|
||||||
if (!session[s].mru)
|
if (!session[s].mru)
|
||||||
session[s].mru = DEFAULT_MRU;
|
session[s].mru = DEFAULT_MRU;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue