diff options
author | brian <brian@cvs.openbsd.org> | 1999-02-18 19:12:11 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1999-02-18 19:12:11 +0000 |
commit | eb9350286db6bc78c797ad10a57a7eea17fea041 (patch) | |
tree | 29ba4cb330c522c6ad445cd0341c60788b369816 | |
parent | bf01b5ddb9482bcd39a85fc7b59af28882c5713a (diff) |
Don't expect a chap response if we haven't negotiated
chap 0x80.
-rw-r--r-- | usr.sbin/ppp/ppp/chap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ppp/chap.c b/usr.sbin/ppp/ppp/chap.c index 4cf95b0ebde..8772f3e8f18 100644 --- a/usr.sbin/ppp/ppp/chap.c +++ b/usr.sbin/ppp/ppp/chap.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: chap.c,v 1.6 1999/02/18 00:50:44 brian Exp $ + * $Id: chap.c,v 1.7 1999/02/18 19:12:10 brian Exp $ * * TODO: */ @@ -639,7 +639,8 @@ chap_Input(struct physical *p, struct mbuf *bp) if (chap_HaveAnotherGo(chap)) break; key = NULL; - } else if (!lanman && !IsEnabled(p->link.lcp.cfg.chap80nt)) { + } else if (!lanman && !IsEnabled(p->link.lcp.cfg.chap80nt) && + p->link.lcp.want_authtype == 0x80) { log_Printf(LogPHASE, "Auth failure: mschap not enabled\n"); if (chap_HaveAnotherGo(chap)) break; |