From: Paul Mackerras Date: Sat, 6 Nov 2004 05:39:23 +0000 (+0000) Subject: Don't ask for CHAP if we don't have any digests to use. X-Git-Tag: ppp-2.4.7~201 X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=f04768b39f0b81bef6f2b785ee7cbfc11b612f52;p=ppp.git Don't ask for CHAP if we don't have any digests to use. --- diff --git a/pppd/auth.c b/pppd/auth.c index 9cc3af7..b9115b9 100644 --- a/pppd/auth.c +++ b/pppd/auth.c @@ -68,7 +68,7 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define RCSID "$Id: auth.c,v 1.99 2004/11/04 10:02:26 paulus Exp $" +#define RCSID "$Id: auth.c,v 1.100 2004/11/06 05:39:23 paulus Exp $" #include #include @@ -1104,7 +1104,7 @@ auth_check_options() if (auth_required) { allow_any_ip = 0; if (!wo->neg_chap && !wo->neg_upap && !wo->neg_eap) { - wo->neg_chap = 1; + wo->neg_chap = chap_mdtype_all != MDTYPE_NONE; wo->chap_mdtype = chap_mdtype_all; wo->neg_upap = 1; wo->neg_eap = 1;