Merge branch 'chap_nack' into 'master'
LCP: accept an auth nack to CHAP with length == 4 See merge request l2tpns/l2tpns!19
This commit is contained in:
commit
b3b5fc5c59
1 changed files with 1 additions and 1 deletions
2
ppp.c
2
ppp.c
|
|
@ -899,7 +899,7 @@ void processlcp(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l)
|
||||||
LOG(3, s, t, " Remote requested PAP authentication...%sing\n",
|
LOG(3, s, t, " Remote requested PAP authentication...%sing\n",
|
||||||
authtype ? "accept" : "reject");
|
authtype ? "accept" : "reject");
|
||||||
}
|
}
|
||||||
else if (proto == PPPCHAP && length > 4 && *(o + 4) == 5)
|
else if (proto == PPPCHAP && (length == 4 || (length > 4 && *(o + 4) == 5)))
|
||||||
{
|
{
|
||||||
authtype = config->radius_authtypes & AUTHCHAP;
|
authtype = config->radius_authtypes & AUTHCHAP;
|
||||||
LOG(3, s, t, " Remote requested CHAP authentication...%sing\n",
|
LOG(3, s, t, " Remote requested CHAP authentication...%sing\n",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue