The wrong-last-byte bug on win98 chap responses is also in winME

This commit is contained in:
brian 2001-08-02 20:12:48 +00:00
parent ad8e414cce
commit 967f33f3bc

View File

@ -745,7 +745,7 @@ chap_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
*ans = chap->auth.id;
bp = mbuf_Read(bp, ans + 1, alen);
if (p->link.lcp.want_authtype == 0x81 && ans[alen] != '\0') {
log_Printf(LogWARN, "%s: Compensating for corrupt (Win98?) "
log_Printf(LogWARN, "%s: Compensating for corrupt (Win98/WinME?) "
"CHAP81 RESPONSE\n", l->name);
ans[alen] = '\0';
}