diff options
author | brian <brian@FreeBSD.org> | 1999-02-18 19:11:46 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-02-18 19:11:46 +0000 |
commit | 72dda067773c6c9f0e13491ed35bfee34cff0bd9 (patch) | |
tree | 0c3ad63105cc0ec27fb62af07a6a5a39c95a6931 /usr.sbin/ppp/chap.c | |
parent | caf1c39505cf2e3c99f4635a6c9244634b23f562 (diff) | |
download | FreeBSD-src-72dda067773c6c9f0e13491ed35bfee34cff0bd9.zip FreeBSD-src-72dda067773c6c9f0e13491ed35bfee34cff0bd9.tar.gz |
Don't expect a chap response if we haven't negotiated
chap 0x80.
Diffstat (limited to 'usr.sbin/ppp/chap.c')
-rw-r--r-- | usr.sbin/ppp/chap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ppp/chap.c b/usr.sbin/ppp/chap.c index cf0e2bd..fea5df7 100644 --- a/usr.sbin/ppp/chap.c +++ b/usr.sbin/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.43 1999/02/11 10:14:07 brian Exp $ + * $Id: chap.c,v 1.44 1999/02/18 00:52:12 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; |