diff options
author | brian <brian@FreeBSD.org> | 2001-10-18 08:48:04 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-10-18 08:48:04 +0000 |
commit | 381bbd23209b48f9e6ab1da096978d1e517d1e3a (patch) | |
tree | 3dd5322cc80c97e15aae6d2427bdb624b9696425 | |
parent | f9a9a183bf50c2df5584a87f4b24dc28f6efc198 (diff) | |
download | FreeBSD-src-381bbd23209b48f9e6ab1da096978d1e517d1e3a.zip FreeBSD-src-381bbd23209b48f9e6ab1da096978d1e517d1e3a.tar.gz |
Fix AUTH callback negotiations.
MFC after: 1 week
-rw-r--r-- | usr.sbin/ppp/lcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/lcp.c b/usr.sbin/ppp/lcp.c index e75ee72..c8eb6f7 100644 --- a/usr.sbin/ppp/lcp.c +++ b/usr.sbin/ppp/lcp.c @@ -1101,7 +1101,7 @@ LcpDecodeConfig(struct fsm *fp, u_char *cp, int plen, int mode_type, if (p->type != PHYS_DIRECT) goto reqreject; if ((p->dl->cfg.callback.opmask & CALLBACK_BIT(op)) && - (op != CALLBACK_AUTH || p->link.lcp.auth_ineed) && + (op != CALLBACK_AUTH || p->link.lcp.want_auth) && (op != CALLBACK_E164 || E164ok(&p->dl->cfg.callback, cp + 3, sz))) { lcp->his_callback.opmask = CALLBACK_BIT(op); @@ -1264,7 +1264,7 @@ reqreject: *dec->nakend++ = TY_CALLBACK; *dec->nakend++ = 3; if ((p->dl->cfg.callback.opmask & CALLBACK_BIT(CALLBACK_AUTH)) && - p->link.lcp.auth_ineed) + p->link.lcp.want_auth) *dec->nakend++ = CALLBACK_AUTH; else if (p->dl->cfg.callback.opmask & CALLBACK_BIT(CALLBACK_CBCP)) *dec->nakend++ = CALLBACK_CBCP; |