Warn when a CHAP81 SUCCESS packet is invalid due to an incorrect S= value.
This commit is contained in:
parent
6a94a97953
commit
238b01d898
@ -902,8 +902,8 @@ chap_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
|
||||
if (p->link.lcp.his_authtype == 0x81) {
|
||||
if (strncmp(ans, chap->authresponse, 42)) {
|
||||
datalink_AuthNotOk(p->dl);
|
||||
log_Printf(LogDEBUG, "CHAP81: AuthenticatorResponse: (%s)"
|
||||
" != ans: (%s)\n", chap->authresponse, ans);
|
||||
log_Printf(LogWARN, "CHAP81: AuthenticatorResponse: (%.42s)"
|
||||
" != ans: (%.42s)\n", chap->authresponse, ans);
|
||||
|
||||
} else {
|
||||
/* Successful login */
|
||||
|
Loading…
x
Reference in New Issue
Block a user